From 6663235a835b618345660935336de8852a5bd8e1 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Wed, 3 Apr 2013 21:20:12 +0200 Subject: [PATCH] Fix enchanted apples getting 'repaired'. --- src/com/garbagemule/MobArena/ArenaListener.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/garbagemule/MobArena/ArenaListener.java b/src/com/garbagemule/MobArena/ArenaListener.java index 579db0a..ec0e638 100644 --- a/src/com/garbagemule/MobArena/ArenaListener.java +++ b/src/com/garbagemule/MobArena/ArenaListener.java @@ -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();