From 185fc91342edcfeef7c802804c743dce5a22e5b4 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 25 Dec 2021 08:43:09 -0800 Subject: [PATCH] Version 2.9.0 (#248) * Changed IslandLevelCalculator minHeight to world minHeight for negative blocks height support since 1.18. (#246) * Version 2.9.0 Co-authored-by: Huynh Tien --- pom.xml | 2 +- .../world/bentobox/level/calculators/IslandLevelCalculator.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index b57a4d0..5766363 100644 --- a/pom.xml +++ b/pom.xml @@ -65,7 +65,7 @@ -LOCAL - 2.8.1 + 2.9.0 BentoBoxWorld_Level bentobox-world https://sonarcloud.io diff --git a/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java b/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java index 2a1ac3a..845ba5c 100644 --- a/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java +++ b/src/main/java/world/bentobox/level/calculators/IslandLevelCalculator.java @@ -433,7 +433,7 @@ public class IslandLevelCalculator { continue; } // Only count to the highest block in the world for some optimization - for (int y = 0; y < chunk.getWorld().getMaxHeight(); y++) { + for (int y = chunk.getWorld().getMinHeight(); y < chunk.getWorld().getMaxHeight(); y++) { BlockData blockData = chunkSnapshot.getBlockData(x, y, z); boolean belowSeaLevel = seaHeight > 0 && y <= seaHeight; // Slabs can be doubled, so check them twice