Fix crash from missing node types.
This commit is contained in:
parent
4ad818a922
commit
8eedc5afc3
4 changed files with 13 additions and 2 deletions
|
@ -355,7 +355,7 @@ fun_caves.treegen = function(minp, maxp, data, p2data, area, node)
|
|||
end
|
||||
|
||||
if data[ivm] ~= node['air'] and data[ivm] ~= node['fun_caves:weightless_water'] then
|
||||
if math_random(100) == 1 then
|
||||
if math_random(200) == 1 then
|
||||
data[ivm] = node['fun_caves:sap']
|
||||
elseif math_random(1000) == 1 then
|
||||
data[ivm] = node['fun_caves:tree_mineral']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue