[SPIGOT-1216] PotionEffectType.createPotionEffect creates wrong durations Created: 30/Sep/15 Updated: 03/Oct/15 Resolved: 03/Oct/15 |
|
Status: | Closed |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | SL Dev | Assignee: | Unassigned |
Resolution: | Won't Fix | Votes: | 0 |
Labels: | duration, potion, potioneffect |
Description |
While coding, I tried to create a PotionEffect using PotionEffectType.createEffect method. After some testing, I tried creating the effect with the potioneffect constructor and entered 100 ticks, it worked for 100 ticks. Basically, durations in createEfefct method don't work correctly. |
Comments |
Comment by Black Hole [ 30/Sep/15 ] |
Works as intended, since JavaDoc states: "Creates a PotionEffect from the given PotionEffectType, applying duration modifiers and checks." So some plugins might rely on the behaviour. |
Comment by SpigotMC [ 30/Sep/15 ] |
Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 18 version(s) behind. CraftBukkit is 44 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue. |