mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2025-01-07 19:18:01 +01:00
fix removing potion effects
This commit is contained in:
parent
8b08434750
commit
40c4aca7b2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user