From 29744ae62b6d4a57157c39b852779c47434db43b Mon Sep 17 00:00:00 2001 From: MukjepScarlet <93977077+MukjepScarlet@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:14:23 +0800 Subject: [PATCH] fix(Minimap): missing max height for calculation (#4936) --- .../theme/component/types/minimap/MinimapHeightmapManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/net/ccbluex/liquidbounce/integration/theme/component/types/minimap/MinimapHeightmapManager.kt b/src/main/kotlin/net/ccbluex/liquidbounce/integration/theme/component/types/minimap/MinimapHeightmapManager.kt index 6f7101fc9ed..bd0fccbc148 100644 --- a/src/main/kotlin/net/ccbluex/liquidbounce/integration/theme/component/types/minimap/MinimapHeightmapManager.kt +++ b/src/main/kotlin/net/ccbluex/liquidbounce/integration/theme/component/types/minimap/MinimapHeightmapManager.kt @@ -89,7 +89,7 @@ class MinimapHeightmapManager { // The changed block is the world surface. If it is not a surface block anymore, // we need to find a new surface block under it if (!isSurface(pos, newState)) { - calculateHeight(pos.x, pos.z) + calculateHeight(pos.x, pos.z, maxY = currentHeight) } else { null }