forked from mtcontrib/bonemeal
tweak flower addition to wait until mods loaded
This commit is contained in:
parent
308baf3a17
commit
8fc57f7746
13
init.lua
13
init.lua
@ -63,24 +63,19 @@ local dry_grass = {
|
|||||||
"default:dry_grass_5", "", ""
|
"default:dry_grass_5", "", ""
|
||||||
}
|
}
|
||||||
|
|
||||||
-- add all in-game flowers except waterlily
|
-- loads mods then add all in-game flowers except waterlily
|
||||||
local flowers = {}
|
local flowers = {}
|
||||||
|
|
||||||
|
minetest.after(0.1, function()
|
||||||
|
|
||||||
for node, def in pairs(minetest.registered_nodes) do
|
for node, def in pairs(minetest.registered_nodes) do
|
||||||
|
|
||||||
if def.groups.flower and not node:find("waterlily") then
|
if def.groups.flower and not node:find("waterlily") then
|
||||||
flowers[#flowers + 1] = node
|
flowers[#flowers + 1] = node
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end)
|
||||||
|
|
||||||
-- add additional bakedclay flowers if enabled
|
|
||||||
if minetest.get_modpath("bakedclay") then
|
|
||||||
flowers[#flowers + 1] = "bakedclay:delphinium"
|
|
||||||
flowers[#flowers + 1] = "bakedclay:thistle"
|
|
||||||
flowers[#flowers + 1] = "bakedclay:lazarus"
|
|
||||||
flowers[#flowers + 1] = "bakedclay:mannagrass"
|
|
||||||
flowers[#flowers + 1] = ""
|
|
||||||
end
|
|
||||||
|
|
||||||
-- default biomes deco
|
-- default biomes deco
|
||||||
local deco = {
|
local deco = {
|
||||||
|
Loading…
Reference in New Issue
Block a user