Remove not needed if statement

This commit is contained in:
Niklp 2024-07-01 20:50:06 +02:00
parent b440a37a2e
commit 1dfaca31be
No known key found for this signature in database
GPG Key ID: 05D6F5035E66267A

View File

@ -44,13 +44,11 @@ minetest.after(1, function()
for _,def in pairs(minetest.registered_decorations) do for _,def in pairs(minetest.registered_decorations) do
local name = def.decoration local name = def.decoration
if name then if type(name) == "string" then
if type(name) == "string" then add_flower(name)
add_flower(name) elseif type(name) == "table" then
elseif type(name) == "table" then for _,sub_name in ipairs(name) do
for _,sub_name in ipairs(name) do add_flower(sub_name)
add_flower(sub_name)
end
end end
end end
end end