Skip to content

Commit

Permalink
Fixed issue with trying to get block at y=256
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachesMLG committed Jun 4, 2021
1 parent ae2d6ac commit cf798a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "com.iridium"
version = "3.0.2"
version = "3.0.3"
description = "IridiumSkyblock"
java.sourceCompatibility = JavaVersion.VERSION_1_8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ private void recalculateIsland(@NotNull Island island, @NotNull List<Chunk> 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))) {
Expand Down

0 comments on commit cf798a9

Please sign in to comment.