diff --git a/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch b/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch index 6e41390320..15811ba3c8 100644 --- a/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch @@ -388,7 +388,6 @@ @Nullable public MobEffectInstance removeEffectNoUpdate(Holder 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 effect) {