mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 19:58:35 +01:00
fixed some pipes loading chunks
This commit is contained in:
parent
9d29ed53c0
commit
9fab982e6a
1 changed files with 4 additions and 0 deletions
|
@ -143,6 +143,8 @@ public class PipeNetwork implements ICapabilitySerializable<CompoundNBT>, GraphL
|
||||||
return false;
|
return false;
|
||||||
this.startProfile("find_destination");
|
this.startProfile("find_destination");
|
||||||
for (BlockPos pipePos : this.getOrderedNetworkNodes(startPipePos)) {
|
for (BlockPos pipePos : this.getOrderedNetworkNodes(startPipePos)) {
|
||||||
|
if (!this.world.isBlockLoaded(pipePos))
|
||||||
|
continue;
|
||||||
PipeTileEntity pipe = this.getPipe(pipePos);
|
PipeTileEntity pipe = this.getPipe(pipePos);
|
||||||
BlockPos dest = pipe.getAvailableDestination(stack, false, preventOversending);
|
BlockPos dest = pipe.getAvailableDestination(stack, false, preventOversending);
|
||||||
if (dest == null || dest.equals(startInventory))
|
if (dest == null || dest.equals(startInventory))
|
||||||
|
@ -221,6 +223,8 @@ public class PipeNetwork implements ICapabilitySerializable<CompoundNBT>, GraphL
|
||||||
this.startProfile("get_network_items");
|
this.startProfile("get_network_items");
|
||||||
List<NetworkLocation> info = new ArrayList<>();
|
List<NetworkLocation> info = new ArrayList<>();
|
||||||
for (BlockPos dest : this.getOrderedNetworkNodes(node)) {
|
for (BlockPos dest : this.getOrderedNetworkNodes(node)) {
|
||||||
|
if (!this.world.isBlockLoaded(dest))
|
||||||
|
continue;
|
||||||
PipeTileEntity pipe = this.getPipe(dest);
|
PipeTileEntity pipe = this.getPipe(dest);
|
||||||
if (!pipe.canNetworkSee())
|
if (!pipe.canNetworkSee())
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue