Potion effects are properly removed on join and leave/death.

This commit is contained in:
garbagemule 2012-03-04 13:25:40 +01:00
parent 2adf1678cc
commit 5e7287d03f
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
name: MobArena
author: garbagemule
main: com.garbagemule.MobArena.MobArena
version: 0.94.4.56
version: 0.94.4.57
softdepend: [Spout,MultiVerse,XcraftGate,Towny,Heroes,MagicSpells,Vault]
commands:
ma:

View File

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