mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 14:30:17 +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
1 changed files with 1 additions and 2 deletions
|
@ -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 a new issue