Fix crash from missing node types.

This commit is contained in:
Duane 2016-07-12 21:20:55 -05:00
parent 4ad818a922
commit 8eedc5afc3
4 changed files with 13 additions and 2 deletions

View file

@ -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']