diff --git a/build.gradle.kts b/build.gradle.kts index 9818d9b95..10d6f3ede 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } group = "com.iridium" -version = "3.0.2" +version = "3.0.3" description = "IridiumSkyblock" java.sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java index b682ceb48..116e4fcff 100644 --- a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java +++ b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java @@ -631,7 +631,7 @@ private void recalculateIsland(@NotNull Island island, @NotNull List chun Bukkit.getScheduler().runTaskAsynchronously(IridiumSkyblock.getInstance(), () -> chunks.stream().map(chunk -> chunk.getChunkSnapshot(true, false, false)).forEach(chunk -> { World world = Bukkit.getWorld(chunk.getWorldName()); - int maxHeight = world == null ? 255 : world.getMaxHeight(); + int maxHeight = world == null ? 255 : world.getMaxHeight()-1; for (int x = 0; x < 16; x++) { for (int z = 0; z < 16; z++) { if (island.isInIsland(x + (chunk.getX() * 16), z + (chunk.getZ() * 16))) {