Fix Server crash with last version, #releaseBuild
This commit is contained in:
parent
8c62123da3
commit
d605b7175f
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue