world bounds tweak

This commit is contained in:
nossr50
2021-04-18 17:21:37 -07:00
parent 16f79b9fbc
commit 2c44590c52
3 changed files with 20 additions and 2 deletions

View File

@@ -292,7 +292,8 @@ public final class BlockUtils {
public static boolean isWithinWorldBounds(@NotNull WorldCompatibilityLayer worldCompatibilityLayer, @NotNull Block block) {
World world = block.getWorld();
return block.getY() > worldCompatibilityLayer.getMinWorldHeight(world) && block.getY() < worldCompatibilityLayer.getMaxWorldHeight(world);
//pretty sure both height and min height are able to have blocks placed on them
return block.getY() >= worldCompatibilityLayer.getMinWorldHeight(world) && block.getY() <= worldCompatibilityLayer.getMaxWorldHeight(world);
}
}