Merge pull request #782 from dawon/bugfix/potion-effects

Fix removing potion effects
This commit is contained in:
libraryaddict 2024-11-26 15:16:04 +13:00 committed by GitHub
commit dd3f395786
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -360,7 +360,7 @@ public class LivingWatcher extends FlagWatcher {
@NmsRemovedIn(NmsVersion.v1_20_R4) @NmsRemovedIn(NmsVersion.v1_20_R4)
public void removePotionEffect(PotionEffectType potionEffect) { public void removePotionEffect(PotionEffectType potionEffect) {
if (hasPotionEffect(potionEffect)) { if (hasPotionEffect(potionEffect)) {
potionEffects.remove(potionEffect.getId()); potionEffects.remove(potionEffect.getName());
} }
sendPotionEffects(); sendPotionEffects();