Fix world loading stalling when a disk drive is present

This commit is contained in:
raoulvdberge
2019-10-13 15:22:36 +02:00
parent 0fdb9b68a2
commit e60e9e5acc
2 changed files with 7 additions and 1 deletions

View File

@@ -90,7 +90,9 @@ public class DiskDriveNetworkNode extends NetworkNode implements IStorageProvide
network.getFluidStorageCache().invalidate(); network.getFluidStorageCache().invalidate();
} }
WorldUtils.updateBlock(world, pos); if (!isReading()) {
WorldUtils.updateBlock(world, pos);
}
} }
} }
}; };

View File

@@ -71,4 +71,8 @@ public class BaseItemHandler extends ItemStackHandler {
public void setReading(boolean reading) { public void setReading(boolean reading) {
this.reading = reading; this.reading = reading;
} }
public boolean isReading() {
return reading;
}
} }