Fixed ext storage not updating

This commit is contained in:
Raoul Van den Berge
2016-11-04 23:12:59 +01:00
parent c8b8ab722d
commit d7b9d54c51

View File

@@ -124,9 +124,17 @@ public class TileExternalStorage extends TileMultipartNode implements IItemStora
network.getFluidStorageCache().invalidate();
}
private int networkTicks;
@Override
public void update() {
if (!worldObj.isRemote && network != null) {
if (networkTicks == 0) {
updateStorage(network);
}
networkTicks++;
for (ItemStorageExternal storage : itemStorages) {
storage.detectChanges(network);
}