Skip to content

Commit

Permalink
Bump phtree dep version
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jul 10, 2023
1 parent 9265f6c commit dbaf6f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -57,7 +57,7 @@
<dependency>
<groupId>ch.ethz.globis.phtree</groupId>
<artifactId>phtree</artifactId>
<version>2.5.0</version>
<version>2.6.2</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Expand Up @@ -226,13 +226,13 @@ public static Location findValidLocation(Location location, int xradius, int yra
for (int y = -yradius; y <= yradius; y++) {
for (int x = -xradius; x <= xradius; x++) {
for (int z = -xradius; z <= xradius; z++) {
if (!base.getWorld().isChunkLoaded(base.getX() + x >> 4, base.getZ() + z >> 4)) {
if (!base.getWorld().isChunkLoaded(base.getX() + x >> 4, base.getZ() + z >> 4))
continue;
}

Block relative = base.getRelative(x, y, z);
if (filter.apply(relative) && canStandOn(relative.getRelative(BlockFace.DOWN))) {
if (filter.apply(relative) && canStandOn(relative.getRelative(BlockFace.DOWN)))
return relative.getLocation();
}

}
}
}
Expand Down

0 comments on commit dbaf6f1

Please sign in to comment.