elevate minimum ore generation height by 6 before blocks generation priority added

This commit is contained in:
MihailRis 2026-01-24 14:33:38 +03:00
parent 89485dc592
commit 3f5fc5376d

View file

@ -18,7 +18,7 @@ function ores.place(placements, x, z, w, d, seed, hmap, chunk_height)
for i=1,count do
local sx = math.random() * w
local sz = math.random() * d
local sy = math.random() * (chunk_height * 0.5)
local sy = math.random() * (chunk_height * 0.5) + 6
if sy < hmap:at(sx, sz) * chunk_height - 6 then
table.insert(placements, {ore.struct, {sx, sy, sz}, math.random()*4, -1})
end