Skip to content

Commit

Permalink
ignore xdecor's flowerpots when adding flowers
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed Feb 20, 2021
1 parent 8fc57f7 commit 634d149
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 634d149

Please sign in to comment.