Remove Potion Effects when switching Class

This commit is contained in:
Sn0wStorm 2013-05-25 15:06:07 +02:00
parent 1f80c8bed9
commit 7d9c0b032b

View File

@ -293,6 +293,11 @@ public class DPlayer {
this.player.getInventory().setArmorContents(null);
player.getInventory().setItemInHand(new ItemStack(0));
// Remove Potion Effects
for (PotionEffect effect : this.player.getActivePotionEffects()) {
this.player.removePotionEffect(effect.getType());
}
/* Set Inventory */
for (ItemStack istack : dclass.items) {