mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-27 10:41:27 +01:00
Fix potion effect type removal (#11778)
An incorrectly updated hunk attempted to remove the MobEffectInstance from the active effect map instead of the Holder<MobEffect> as the parameter name was changed from holder to effect during hardfork.
This commit is contained in:
parent
eb793c3131
commit
f8bf600375
@ -388,7 +388,6 @@
|
||||
|
||||
@Nullable
|
||||
public MobEffectInstance removeEffectNoUpdate(Holder<MobEffect> effect) {
|
||||
- return this.activeEffects.remove(effect);
|
||||
+ // CraftBukkit start
|
||||
+ return this.removeEffectNoUpdate(effect, org.bukkit.event.entity.EntityPotionEffectEvent.Cause.UNKNOWN);
|
||||
+ }
|
||||
@ -410,7 +409,7 @@
|
||||
+ return null;
|
||||
+ }
|
||||
+
|
||||
+ return this.activeEffects.remove(effectInstance);
|
||||
return this.activeEffects.remove(effect);
|
||||
}
|
||||
|
||||
public boolean removeEffect(Holder<MobEffect> effect) {
|
||||
|
Loading…
Reference in New Issue
Block a user