Remove not needed if statement
This commit is contained in:
parent
b440a37a2e
commit
1dfaca31be
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user