Closes gh-417. Potion effects are cleared properly again at warzone exit and at death - that part of the bukkit API is broken in 1.2.3-R0.1 and R0.2, at least.

This commit is contained in:
taoneill 2012-03-21 23:43:21 -04:00
parent f8e771c9e0
commit fc03a0cf74

View File

@ -17,7 +17,7 @@ public class PotionEffectHelper {
public static void clearPotionEffects(Player player) {
for(PotionEffect effect : player.getActivePotionEffects())
{
player.removePotionEffect(effect.getType());
player.addPotionEffect(new PotionEffect(effect.getType(), 0, 0), true);
}
}
}