From 970fc5fb2c549d1884061a54decf318a89bdbab6 Mon Sep 17 00:00:00 2001 From: npx Date: Thu, 5 Jan 2017 14:00:20 +0100 Subject: [PATCH] Added a "return" that I had forgot --- init.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 5f2f757..21f8a6b 100644 --- a/init.lua +++ b/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 if not minetest.registered_nodes[under.name] then + return end -- 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) -local OPEN_TIME_START = 0.2 -local OPEN_TIME_END = 0.8 -local OPEN_CHECK = 10 +local OPEN_TIME_START = 0.2 +local OPEN_TIME_END = 0.8 +local OPEN_CHECK = 10 set_fluo = function (pos) 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"}) end }) - + minetest.register_abm({ nodenames = {"flowers:mushroom_brown"}, interval = 1, @@ -1841,4 +1842,4 @@ nsspf_register_recipes ('clitocybula_azurea') action = function(pos, node) minetest.set_node({x = pos.x, y = pos.y, z = pos.z}, {name = "air"}) end - }) \ No newline at end of file + })