1
0
mirror of https://codeberg.org/tenplus1/bonemeal.git synced 2024-11-13 19:50:16 +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
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