[Forge] Fix clearing inventories

1.11 no longer uses null in inventories.
This commit is contained in:
Kenzie Togami 2016-11-17 22:36:11 -08:00 committed by Wizjany
parent 6ad11624bb
commit e9419f4280

View File

@ -188,7 +188,7 @@ public class ForgeWorld extends AbstractWorld {
IInventory inv = (IInventory) tile;
int size = inv.getSizeInventory();
for (int i = 0; i < size; i++) {
inv.setInventorySlotContents(i, null);
inv.setInventorySlotContents(i, ItemStack.EMPTY);
}
return true;
}