mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fix inventory crash
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user