From 856987bb454c0f44eeda4ee02e184c733e0903fe Mon Sep 17 00:00:00 2001 From: Bram van den Heuvel Date: Thu, 2 May 2024 11:18:46 +0200 Subject: [PATCH] Fix shape y-level bug --- init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.lua b/init.lua index 18bf171..9438aa0 100644 --- a/init.lua +++ b/init.lua @@ -414,6 +414,9 @@ function internal.clean_shape_def(def) y_max = def.y_max or internal.world_maxp.y, } + d.y_min = internal.reduced_shape_pos({ x = 0, y = d.y_min, z = 0 }).y + 1 + d.y_max = internal.reduced_shape_pos({ x = 0, y = d.y_max, z = 0 }).y - 1 + if type(def.noise_params) == "table" then d.noise_params = def.noise_params end