From bb6b1233cd014a0749b5e8328c07d7c49a4917b3 Mon Sep 17 00:00:00 2001 From: Hugues Ross Date: Mon, 20 Apr 2020 19:33:26 -0400 Subject: [PATCH] Scale down height based on the map scaling --- map_formspec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map_formspec.lua b/map_formspec.lua index a766da6..c207284 100644 --- a/map_formspec.lua +++ b/map_formspec.lua @@ -81,7 +81,7 @@ local function generate_map(data, x, y, w, h, player_x, player_y, detail, map_sc if biome then local depth = math.min(math.max(math.floor(height / 8), -8), 0) * -1 - height = math.max(math.min(math.floor(height / 4), 8), 0) + height = math.max(math.min(math.floor(height / (math.max(map_scale * 0.5, 1) + 4)), 8), 0) local mod = ""; if height > 0 then