Should fix the server crash
This commit is contained in:
parent
1a4e88b9b0
commit
eabbd7ba33
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class InventoryPersonalChest extends InventoryBasic
|
||||||
if (getStack().getItem() instanceof ISustainedInventory) {
|
if (getStack().getItem() instanceof ISustainedInventory) {
|
||||||
((ISustainedInventory)getStack().getItem()).setInventory(tagList, getStack());
|
((ISustainedInventory)getStack().getItem()).setInventory(tagList, getStack());
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Avoiding a server crash as : " + getStack().getItem().getItemName() + " is not a sustained inventory.");
|
System.out.println("Avoiding a server crash as : " + getStack().getItem().getClass().getName() + " is not a sustained inventory.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue