1
0
mirror of https://codeberg.org/tenplus1/bonemeal.git synced 2025-01-08 17:20:24 +01:00

fixed bug thanks to orbea

This commit is contained in:
TenPlus1 2017-11-19 10:41:05 +00:00
parent 02b1c4c235
commit dd6812afa4

View File

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