mirror of
https://github.com/ElCeejo/animalia.git
synced 2025-03-15 04:11:25 +00:00
Fix crash from missing content id
This commit is contained in:
parent
3c899ffd12
commit
93c5127d1c
1 changed files with 1 additions and 0 deletions
|
@ -254,6 +254,7 @@ minetest.register_on_generated(function(minp, maxp)
|
|||
for y = max_y, 2, -1 do
|
||||
local vi = area:index(xcen, y, zcen)
|
||||
local c_node = data[vi]
|
||||
if not c_node then break end
|
||||
local c_name = minetest.get_name_from_content_id(c_node)
|
||||
local c_def = minetest.registered_nodes[c_name]
|
||||
if y == max_y and c_node ~= c_air then -- if top node solid
|
||||
|
|
Loading…
Add table
Reference in a new issue