mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 21:09:45 +00:00
Should fix the bug
This commit is contained in:
1 parent
611627519d
commit
1a4e88b9b0
9 files changed
+1595
-1
No files matched your search
@@ -70,7 +70,11 @@ public class InventoryPersonalChest extends InventoryBasic
|
||||
|
||||
if(getStack() != null)
|
||||
{
|
||||
((ISustainedInventory)getStack().getItem()).setInventory(tagList, getStack());
|
||||
if (getStack().getItem() instanceof ISustainedInventory) {
|
||||
((ISustainedInventory)getStack().getItem()).setInventory(tagList, getStack());
|
||||
} else {
|
||||
System.out.println("Avoiding a server crash as : " + getStack().getItem().getItemName() + " is not a sustained inventory.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user