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:
parent
02b1c4c235
commit
dd6812afa4
2
init.lua
2
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user