Fix enchanted apples getting 'repaired'.

This commit is contained in:
Andreas Troelsen 2013-04-03 21:20:12 +02:00
parent 51778587dc
commit 6663235a83

View File

@ -540,7 +540,8 @@ public class ArenaListener
ItemStack weapon = p.getInventory().getContents()[p.getInventory().getHeldItemSlot()];
if (weapon != null && // Avoid NPE
weapon.getTypeId() != 373 && // Prevent potion -> water bottle
weapon.getTypeId() != 35) // Prevent wool -> white wool
weapon.getTypeId() != 35 && // Prevent wool -> white wool
weapon.getTypeId() != 322) // Prevent ench. apple -> normal apple
weapon.setDurability((short) 0);
ArenaPlayerStatistics aps = arena.getArenaPlayer(p).getStats();