mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-24 18:17:39 +01:00
Fix enchanted apples getting 'repaired'.
This commit is contained in:
parent
51778587dc
commit
6663235a83
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user