ignore xdecor's flowerpots when adding flowers

This commit is contained in:
tenplus1 2021-02-20 15:52:36 +00:00
parent 8fc57f7746
commit 634d1496aa

View File

@ -70,7 +70,10 @@ minetest.after(0.1, function()
for node, def in pairs(minetest.registered_nodes) do
if def.groups.flower and not node:find("waterlily") then
if def.groups
and def.groups.flower
and not node:find("waterlily")
and not node:find("xdecor:potted_") then
flowers[#flowers + 1] = node
end
end