mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-12-25 02:27:35 +01:00
Make all MA weapons unbreakable (temporary).
This commit is contained in:
parent
dd5924adc1
commit
09d9605bb2
@ -540,6 +540,9 @@ public class ArenaListener
|
||||
return;
|
||||
}
|
||||
|
||||
// Dirty hack for invincible weapons
|
||||
p.getInventory().getContents()[p.getInventory().getHeldItemSlot()].setDurability((short) 0);
|
||||
|
||||
ArenaPlayerStatistics aps = arena.getArenaPlayer(p).getStats();
|
||||
aps.add("dmgDone", event.getDamage());
|
||||
aps.inc("hits");
|
||||
|
Loading…
Reference in New Issue
Block a user