[SPIGOT-2044] AreaEffectCloudApplyEvent not complete Created: 24/Mar/16 Updated: 11/Jul/16 Resolved: 11/Jul/16 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Zrips | Assignee: | Unassigned |
Resolution: | Done | Votes: | 0 |
Labels: | 1.9, bug, spigot |
Issue Links: |
|
Description |
New AreaEffectCloudApplyEvent ignores couple of lingering potion effects made by some potions even when some potions with same effect are counted in but only its duration is different, in example Slowness (0:22) are ignored when Slowness (1:00) counted in.
|
Comments |
Comment by Zrips [ 25/Mar/16 ] |
Ok, issue is slightly different. Event is fired but for all of thos potions getting error for "Caused by: java.lang.IllegalArgumentException: Potion Type is not upgradable" using really simplified code to test it out, but issue comes from trying to get base potion data @EventHandler
public void onLingeringEffectApply(AreaEffectCloudApplyEvent event) {
event.getEntity().getBasePotionData();
}
and looks like there was same/similar issue some time ago https://hub.spigotmc.org/jira/browse/SPIGOT-1899 |
Comment by md_5 [ 24/Mar/16 ] |
Can you provide some reproduction steps |
Comment by t00thpick1 [ 24/Mar/16 ] |
This cannot be the case, there is only one code path that applies effects and it is wrapped by the event code. If those potions function, they throw events. |