Fix the item repairer crashing with certain items

Closes #415
This commit is contained in:
Ellpeck 2016-11-27 10:46:48 +01:00
parent adad967c02
commit 0b1cb80931

View file

@ -37,7 +37,7 @@ public class TileEntityItemRepairer extends TileEntityInventoryBase{
if(StackUtil.isValid(stack)){ if(StackUtil.isValid(stack)){
Item item = stack.getItem(); Item item = stack.getItem();
if(item != null){ if(item != null){
if(item.isRepairable()){ if(item.isRepairable() && item.getMaxDamage(stack) > 0){
return true; return true;
} }
else{ else{