Fix a bug with armor being referenced on the hotbar.

This commit is contained in:
sigonasr2 2016-07-15 18:30:26 -05:00
parent d25b99439f
commit d17fadffe0
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -2163,7 +2163,7 @@ public class GenericFunctions {
equip.setDurability((short)0);
TwosideKeeper.log("Repaired "+equip.toString()+" to full durability.", 5);
} else {
p.getInventory().getItem(i).setDurability((short)(equip.getDurability()-repairamt));
contents[i].setDurability((short)(equip.getDurability()-repairamt));
TwosideKeeper.log("Repaired "+repairamt+" durability to "+equip.toString()+"", 5);
}
}