From 09d9605bb2f6582c94df4e6f8c36e04205f35928 Mon Sep 17 00:00:00 2001 From: Andreas Troelsen Date: Thu, 21 Mar 2013 23:32:35 +0100 Subject: [PATCH] Make all MA weapons unbreakable (temporary). --- src/com/garbagemule/MobArena/ArenaListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/garbagemule/MobArena/ArenaListener.java b/src/com/garbagemule/MobArena/ArenaListener.java index 6e63822..c1d9bfa 100644 --- a/src/com/garbagemule/MobArena/ArenaListener.java +++ b/src/com/garbagemule/MobArena/ArenaListener.java @@ -539,6 +539,9 @@ public class ArenaListener event.setCancelled(true); 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());