mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 11:53:29 +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;
|
||||
this.startProfile("find_destination");
|
||||
for (BlockPos pipePos : this.getOrderedNetworkNodes(startPipePos)) {
|
||||
if (!this.world.isBlockLoaded(pipePos))
|
||||
continue;
|
||||
PipeTileEntity pipe = this.getPipe(pipePos);
|
||||
BlockPos dest = pipe.getAvailableDestination(stack, false, preventOversending);
|
||||
if (dest == null || dest.equals(startInventory))
|
||||
|
@ -221,6 +223,8 @@ public class PipeNetwork implements ICapabilitySerializable<CompoundNBT>, GraphL
|
|||
this.startProfile("get_network_items");
|
||||
List<NetworkLocation> info = new ArrayList<>();
|
||||
for (BlockPos dest : this.getOrderedNetworkNodes(node)) {
|
||||
if (!this.world.isBlockLoaded(dest))
|
||||
continue;
|
||||
PipeTileEntity pipe = this.getPipe(dest);
|
||||
if (!pipe.canNetworkSee())
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue