fixed bug thanks to orbea

This commit is contained in:
TenPlus1 2017-11-19 10:41:05 +00:00
parent 02b1c4c235
commit dd6812afa4
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ local function check_soil(pos, nodename, strength)
end
else
-- place random grass (common)
nod = grass[math.random(1, #grass)] or ""
nod = #grass > 0 and grass[math.random(1, #grass)] or ""
if nod ~= "" then
minetest.set_node(pos2, {name = nod})
end