Fix inventory crash

This commit is contained in:
aidancbrady committed 2016-06-22 12:24:30 -04:00
1 parent bf99b5868e
commit 4be2dbdf3d
1 file changed
+1 -1
@@ -144,7 +144,7 @@ public class ContainerPersonalChest extends Container
{
ItemStack itemStack = player.inventory.getStackInSlot(destSlot);
if(MachineType.get(itemStack) == MachineType.PERSONAL_CHEST)
if(itemStack != null && MachineType.get(itemStack) == MachineType.PERSONAL_CHEST)
{
return null;
}