fix removing potion effects

This commit is contained in:
Jakub Zacek 2024-11-25 20:04:03 +01:00
parent 8b08434750
commit 40c4aca7b2

View File

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