support multiple inventories in InventoryUtils

This commit is contained in:
Raoul Van den Berge
2016-02-03 19:51:51 +01:00
parent f2bf12b833
commit c2f31485f0
11 changed files with 35 additions and 35 deletions

View File

@@ -59,7 +59,7 @@ public class TileDrive extends TileMachine implements IInventory, IStorageProvid
{
super.readFromNBT(nbt);
InventoryUtils.restoreInventory(this, nbt);
InventoryUtils.restoreInventory(this, 0, nbt);
if (nbt.hasKey(NBT_PRIORITY))
{
@@ -72,7 +72,7 @@ public class TileDrive extends TileMachine implements IInventory, IStorageProvid
{
super.writeToNBT(nbt);
InventoryUtils.saveInventory(this, nbt);
InventoryUtils.saveInventory(this, 0, nbt);
nbt.setInteger(NBT_PRIORITY, priority);
}