aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--paper-server/patches/sources/net/minecraft/world/entity/LivingEntity.java.patch3
1 files changed, 1 insertions, 2 deletions
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<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) {