Fix Server crash with last version, #releaseBuild

This commit is contained in:
modmuss50 2017-04-14 22:33:21 +01:00
parent 8c62123da3
commit d605b7175f
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
2 changed files with 7 additions and 4 deletions

View file

@ -67,8 +67,9 @@ public class UpgradeSlot extends Slot implements IRightClickHandler {
if(upgradeable.canBeUpgraded()){
ItemStack stack = upgradeable.getUpgradeInvetory().getStackInSlot(slotID);
if(!stack.isEmpty() && stack.getItem() instanceof IUpgrade){
//Called on both sides :)
((IUpgrade) stack.getItem()).handleRightClick(tileEntity, stack, container, slotID);
if(player.world.isRemote){
((IUpgrade) stack.getItem()).handleRightClick(tileEntity, stack, container, slotID);
}
}
}
}