Added null-check for compatibility with OpenComputers' robots picking up items.

This commit is contained in:
bigbass1997 committed 2017-06-16 15:07:31 -05:00
1 parent 39bcad2158
commit beb3d65669
1 file changed
+1 -1
@@ -190,7 +190,7 @@ public class CommonProxy {
ItemStack stack = itemEntity.getEntityItem();
InventoryPlayer playerInv = player.inventory;
World world = player.getEntityWorld();
if (world.isRemote) {
if (playerInv == null || world.isRemote) {
return;
}
if (Reference.WCT_BOOSTER_ENABLED && !Reference.WCT_EASYMODE_ENABLED) {