This makes more sense2

This commit is contained in:
Raoul Van den Berge
2016-05-19 16:17:07 +02:00
parent 76f94b3ae1
commit ffa948adad

View File

@@ -46,6 +46,7 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
if (storage != null && storage.isDirty()) {
markDirty();
storage.writeToNBT(storageTag);
storage.markClean();
}
}
@@ -97,10 +98,7 @@ public class TileStorage extends TileMachine implements IStorageProvider, IStora
RefinedStorageUtils.saveInventory(inventory, 0, nbt);
nbt.setInteger(NBT_PRIORITY, priority);
storage.writeToNBT(storageTag);
nbt.setTag(NBT_STORAGE, storageTag);
nbt.setInteger(NBT_COMPARE, compare);
nbt.setInteger(NBT_MODE, mode);
}