Possible fix for [Issue #53]

This commit is contained in:
gmcferrin 2012-01-28 12:44:49 -05:00
parent fded7cad96
commit 42ddf648b1

View File

@ -192,7 +192,7 @@ public class Repair {
removeItem(player, rIron); removeItem(player, rIron);
repairItem(player, enchants, enchantsLevel); repairItem(player, enchants, enchantsLevel);
durabilityAfter = (short) (player.getItemInHand().getDurability()-getRepairAmount(is, player)); durabilityAfter = (short) (player.getItemInHand().getDurability();
dif = (short) (durabilityBefore - durabilityAfter); dif = (short) (durabilityBefore - durabilityAfter);
if(m.isShovel(is)) if(m.isShovel(is))
dif = (short) (dif / 3); dif = (short) (dif / 3);