From 40c4aca7b2a457c7cf16209ed7709fae4b69acf1 Mon Sep 17 00:00:00 2001 From: Jakub Zacek Date: Mon, 25 Nov 2024 20:04:03 +0100 Subject: [PATCH] fix removing potion effects --- .../disguise/disguisetypes/watchers/LivingWatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java index 59c42c4e..26c142e9 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/LivingWatcher.java @@ -360,7 +360,7 @@ public class LivingWatcher extends FlagWatcher { @NmsRemovedIn(NmsVersion.v1_20_R4) public void removePotionEffect(PotionEffectType potionEffect) { if (hasPotionEffect(potionEffect)) { - potionEffects.remove(potionEffect.getId()); + potionEffects.remove(potionEffect.getName()); } sendPotionEffects();