Skip to content

Commit

Permalink
Fixed the possibility of checking blocks above the height limit (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 13, 2022
1 parent 2ea8689 commit e696aeb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -131,7 +131,7 @@ public CompletableFuture<Boolean> teleport(Player player, Island island) {
continue;

World world = Bukkit.getWorld(chunkSnapshot.getWorldName());
int worldBuildLimit = world.getMaxHeight();
int worldBuildLimit = world.getMaxHeight() - 1;
int worldMinLimit = plugin.getNMSWorld().getMinHeight(world);

for (int x = 0; x < 16; x++) {
Expand Down

0 comments on commit e696aeb

Please sign in to comment.