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

@@ -62,7 +62,7 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
{
super.readFromNBT(nbt);
InventoryUtils.restoreInventory(inventory, nbt);
InventoryUtils.restoreInventory(inventory, 0, nbt);
if (nbt.hasKey(NBT_STORAGE))
{
@@ -90,7 +90,7 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
{
super.writeToNBT(nbt);
InventoryUtils.saveInventory(inventory, nbt);
InventoryUtils.saveInventory(inventory, 0, nbt);
nbt.setTag(NBT_STORAGE, tag);
nbt.setInteger(NBT_PRIORITY, priority);