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();