Should fix the bug

This commit is contained in:
Bysokar committed 2019-07-28 07:24:11 +10:00
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.");
}
}
}