mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-01-12 11:21:10 +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()];
|
ItemStack weapon = p.getInventory().getContents()[p.getInventory().getHeldItemSlot()];
|
||||||
if (weapon != null && // Avoid NPE
|
if (weapon != null && // Avoid NPE
|
||||||
weapon.getTypeId() != 373 && // Prevent potion -> water bottle
|
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);
|
weapon.setDurability((short) 0);
|
||||||
|
|
||||||
ArenaPlayerStatistics aps = arena.getArenaPlayer(p).getStats();
|
ArenaPlayerStatistics aps = arena.getArenaPlayer(p).getStats();
|
||||||
|
Loading…
Reference in New Issue
Block a user