mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
elevate minimum ore generation height by 6 before blocks generation priority added
This commit is contained in:
parent
89485dc592
commit
3f5fc5376d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue