Fix shape y-level bug
parent
f2dff7b9b9
commit
856987bb45
3
init.lua
3
init.lua
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue