Skip to content

Commit

Permalink
Add block loaded check to controller search
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed Mar 1, 2018
1 parent 8862f64 commit 3311c48
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,9 @@ private void populateNodes (BlockPos root) {
if (depth > range)
continue;

if (!getWorld().isBlockLoaded(coord, false))
continue;

Block block = getWorld().getBlockState(coord).getBlock();
if (!(block instanceof INetworked))
continue;
Expand Down

0 comments on commit 3311c48

Please sign in to comment.