Fix naked dirt sometimes at top of village grass
This commit is contained in:
parent
b4f8bd0c4b
commit
6b1815ac43
@ -331,14 +331,10 @@ function village.generate_hill(vmanip, vdata, pos, ground, ground_top)
|
||||
local prev_was_ground = n_content == c_ground or n_content == c_ground_top
|
||||
if (y == HILL_H-1 or z == y or x == y or z == HILL_W-1-y or x == HILL_W-1-y) and (p.y >= water_level) then
|
||||
local vindex_above = varea:index(p.x,p.y+1,p.z)
|
||||
if vdata[vindex_above] == minetest.CONTENT_AIR then
|
||||
vdata[vindex] = c_ground_top
|
||||
else
|
||||
vdata[vindex] = c_ground
|
||||
end
|
||||
else
|
||||
vdata[vindex] = c_ground
|
||||
end
|
||||
if not prev_was_ground then
|
||||
nodes_set = nodes_set + 1
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user