Fixed ext storage not updating
This commit is contained in:
@@ -124,9 +124,17 @@ public class TileExternalStorage extends TileMultipartNode implements IItemStora
|
|||||||
network.getFluidStorageCache().invalidate();
|
network.getFluidStorageCache().invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private int networkTicks;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
if (!worldObj.isRemote && network != null) {
|
if (!worldObj.isRemote && network != null) {
|
||||||
|
if (networkTicks == 0) {
|
||||||
|
updateStorage(network);
|
||||||
|
}
|
||||||
|
|
||||||
|
networkTicks++;
|
||||||
|
|
||||||
for (ItemStorageExternal storage : itemStorages) {
|
for (ItemStorageExternal storage : itemStorages) {
|
||||||
storage.detectChanges(network);
|
storage.detectChanges(network);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user