Potion effects are properly removed on join and leave/death.
This commit is contained in:
@@ -684,7 +684,7 @@ public class ArenaImpl implements Arena
|
||||
|
||||
private void removePotionEffects(Player p) {
|
||||
for (PotionEffect effect : p.getActivePotionEffects()) {
|
||||
p.removePotionEffect(effect.getType());
|
||||
p.addPotionEffect(new PotionEffect(effect.getType(), 0, 0), true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user