diff --git a/src/main/java/ca/recrown/islandsurvivalcraft/world/shaders/WorldHeightShader.java b/src/main/java/ca/recrown/islandsurvivalcraft/world/shaders/WorldHeightShader.java index 6bbf9e7..e2db4d2 100644 --- a/src/main/java/ca/recrown/islandsurvivalcraft/world/shaders/WorldHeightShader.java +++ b/src/main/java/ca/recrown/islandsurvivalcraft/world/shaders/WorldHeightShader.java @@ -55,11 +55,9 @@ public class WorldHeightShader { } private int calculateTerrainHeight(int worldX, int worldZ) { - double islandValue = islandLocator.getWorldBlockValue(worldX, worldZ); - if (islandValue >= 0) { - return seaLevel; - } - return (int) Math.max((- islandValue) * seaLevel, minimumHeight); + double islandValue = islandLocator.getWorldBlockValue(worldX, worldZ) + 1D; + islandValue *= 100; + return (int) Math.min(63, islandValue); } private double getHeightModifier(int worldX, int worldZ) {