mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-16 04:45:04 +00:00
Merge branch 'master' of https://repo.or.cz/MineClone/MineClone2
This commit is contained in:
commit
6f24a44e53
1 changed files with 2 additions and 2 deletions
|
@ -1092,8 +1092,8 @@ local function generate_structures(minp, maxp, seed, biomemap)
|
||||||
-- Find ground level
|
-- Find ground level
|
||||||
local ground_y = nil
|
local ground_y = nil
|
||||||
for y = struct_max, struct_min, -1 do
|
for y = struct_max, struct_min, -1 do
|
||||||
local checknode = minetest.get_node({x=x,y=y,z=z}).name
|
local checknode = minetest.get_node_or_nil({x=x,y=y,z=z})
|
||||||
if minetest.registered_nodes[checknode].walkable then
|
if checknode and minetest.registered_nodes[checknode.name].walkable then
|
||||||
ground_y = y
|
ground_y = y
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue