mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-04 13:54:35 +01:00
Merge pull request #782 from dawon/bugfix/potion-effects
Fix removing potion effects
This commit is contained in:
commit
dd3f395786
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user