Added a "return" that I had forgot
This commit is contained in:
parent
cac7238781
commit
970fc5fb2c
11
init.lua
11
init.lua
@ -12,6 +12,7 @@ function place_spore(itemstack, placer, pointed_thing, name, topoint, soilblock)
|
|||||||
|
|
||||||
-- return if any of the nodes is not registered
|
-- return if any of the nodes is not registered
|
||||||
if not minetest.registered_nodes[under.name] then
|
if not minetest.registered_nodes[under.name] then
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
-- if not protected then add node and remove 1 item from the itemstack
|
-- if not protected then add node and remove 1 item from the itemstack
|
||||||
@ -978,9 +979,9 @@ nssbf_register_saprotrophicontrees ('clitocybula_azurea', 'Clitocybula azurea',
|
|||||||
nssbf_register_saprotrophicontrees ('ganoderma_lucidum', 'Ganoderma lucidum', 'default:jungletree', 14, 30)
|
nssbf_register_saprotrophicontrees ('ganoderma_lucidum', 'Ganoderma lucidum', 'default:jungletree', 14, 30)
|
||||||
|
|
||||||
|
|
||||||
local OPEN_TIME_START = 0.2
|
local OPEN_TIME_START = 0.2
|
||||||
local OPEN_TIME_END = 0.8
|
local OPEN_TIME_END = 0.8
|
||||||
local OPEN_CHECK = 10
|
local OPEN_CHECK = 10
|
||||||
|
|
||||||
set_fluo = function (pos)
|
set_fluo = function (pos)
|
||||||
if (minetest.get_node_light(pos, nil) < 10) and ((minetest.get_timeofday() < 19500) or (minetest.get_timeofday() > 5000)) then
|
if (minetest.get_node_light(pos, nil) < 10) and ((minetest.get_timeofday() < 19500) or (minetest.get_timeofday() > 5000)) then
|
||||||
@ -1833,7 +1834,7 @@ nsspf_register_recipes ('clitocybula_azurea')
|
|||||||
minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "air"})
|
minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "air"})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
nodenames = {"flowers:mushroom_brown"},
|
nodenames = {"flowers:mushroom_brown"},
|
||||||
interval = 1,
|
interval = 1,
|
||||||
@ -1841,4 +1842,4 @@ nsspf_register_recipes ('clitocybula_azurea')
|
|||||||
action = function(pos, node)
|
action = function(pos, node)
|
||||||
minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "air"})
|
minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "air"})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user