Fix world loading stalling when a disk drive is present
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user