mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-01-11 19:00:38 +01:00
Don't repair potions and wool.
This commit is contained in:
parent
7977915aa1
commit
45f2605794
@ -538,7 +538,10 @@ public class ArenaListener
|
||||
|
||||
// Dirty hack for invincible weapons
|
||||
ItemStack weapon = p.getInventory().getContents()[p.getInventory().getHeldItemSlot()];
|
||||
if (weapon != null) weapon.setDurability((short) 0);
|
||||
if (weapon != null && // Avoid NPE
|
||||
weapon.getTypeId() != 373 && // Prevent potion -> water bottle
|
||||
weapon.getTypeId() != 35) // Prevent wool -> white wool
|
||||
weapon.setDurability((short) 0);
|
||||
|
||||
ArenaPlayerStatistics aps = arena.getArenaPlayer(p).getStats();
|
||||
aps.add("dmgDone", event.getDamage());
|
||||
|
Loading…
Reference in New Issue
Block a user