mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-06-10 06:40:25 +02:00
fixed the pressurizer loading chunks
This commit is contained in:
parent
afd055c8b1
commit
b6df64df57
|
@ -127,6 +127,8 @@ public class PressurizerTileEntity extends TileEntity implements INamedContainer
|
||||||
for (Direction dir : Direction.values()) {
|
for (Direction dir : Direction.values()) {
|
||||||
BlockPos offset = this.pos.offset(dir);
|
BlockPos offset = this.pos.offset(dir);
|
||||||
for (BlockPos node : network.getOrderedNetworkNodes(offset)) {
|
for (BlockPos node : network.getOrderedNetworkNodes(offset)) {
|
||||||
|
if (!this.world.isBlockLoaded(node))
|
||||||
|
continue;
|
||||||
PipeTileEntity pipe = network.getPipe(node);
|
PipeTileEntity pipe = network.getPipe(node);
|
||||||
if (pipe != null)
|
if (pipe != null)
|
||||||
pipe.pressurizer = this;
|
pipe.pressurizer = this;
|
||||||
|
|
Loading…
Reference in a new issue