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,9 +90,11 @@ public class DiskDriveNetworkNode extends NetworkNode implements IStorageProvide
network.getFluidStorageCache().invalidate(); network.getFluidStorageCache().invalidate();
} }
if (!isReading()) {
WorldUtils.updateBlock(world, pos); WorldUtils.updateBlock(world, pos);
} }
} }
}
}; };
private BaseItemHandler itemFilters = new BaseItemHandler(9, new NetworkNodeListener(this)); private BaseItemHandler itemFilters = new BaseItemHandler(9, new NetworkNodeListener(this));

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;
}
} }