mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-26 13:28:33 +01:00
fixed the pressurizer loading chunks
This commit is contained in:
parent
afd055c8b1
commit
b6df64df57
1 changed files with 2 additions and 0 deletions
|
@ -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