Fix shape y-level bug

main
Bram van den Heuvel 2024-05-02 11:18:46 +02:00
parent f2dff7b9b9
commit 856987bb45
1 changed files with 3 additions and 0 deletions

View File

@ -414,6 +414,9 @@ function internal.clean_shape_def(def)
y_max = def.y_max or internal.world_maxp.y, 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 if type(def.noise_params) == "table" then
d.noise_params = def.noise_params d.noise_params = def.noise_params
end end