growlight: do not grow waterlily on soil
Ignore waterlily as growable flower under growlight. This plant should be floating on water. Furthermore, it is completely transparent when grown on soil, giving player a false impression of empty space there (unless F5 debug mode is used). Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
This commit is contained in:
parent
21d583b7dd
commit
085b36f044
@ -20,6 +20,7 @@ local Cable = techage.ElectricCable
|
||||
local power = techage.power
|
||||
local Flowers = {}
|
||||
local Plants = {}
|
||||
local Ignore = { ["flowers:waterlily_waving"] = true }
|
||||
-- 9 plant positions below the light
|
||||
local Positions = {
|
||||
{x = 0, y =-1, z = 0},
|
||||
@ -143,16 +144,20 @@ minetest.after(1, function()
|
||||
if name and type(name) == "string" then
|
||||
local mod = string.split(name, ":")[1]
|
||||
if mod == "flowers" or mod == "bakedclay" then -- Bakedclay also registers flowers as decoration.
|
||||
if not Ignore[name] then
|
||||
techage.register_flower(name)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
for name,ndef in pairs(minetest.registered_nodes) do
|
||||
if type(name) == "string" then
|
||||
local mod = string.split(name, ":")[1]
|
||||
if mod == "farming" and ndef.on_timer then -- probably a plant that still needs to grow
|
||||
if not Ignore[name] then
|
||||
techage.register_plant(name)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
Loading…
Reference in New Issue
Block a user