[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:
Relates
relates to SPIGOT-1899 PotionData arguments flipped in Potio... Resolved

 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.
All ignored potions are:

  • Lingering potion of Weakness (0:22)
  • Lingering potion of Slowness (0:22)
  • Lingering potion of Invisibility (0:45)
  • Lingering potion of Fire Resistance (0:45)
  • Lingering potion of Water Breathing (0:45)
  • Lingering potion of luck (1:45)


 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.

Generated at Sun Mar 30 17:51:35 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.