From 2e47e09a9ed7707a7b668c4b810247fc95a4b26b Mon Sep 17 00:00:00 2001 From: Milan* Date: Sat, 13 Jan 2018 15:28:54 +0100 Subject: [PATCH] fire: remove fire abm's, make fire nodes last 20-30 seconds --- mods/fire/init.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mods/fire/init.lua b/mods/fire/init.lua index f97636b5..ebbf9474 100644 --- a/mods/fire/init.lua +++ b/mods/fire/init.lua @@ -31,18 +31,18 @@ minetest.register_node("fire:basic_flame", { damage_per_second = 4, groups = {igniter = 2, dig_immediate = 3, not_in_creative_inventory = 1}, on_timer = function(pos) - local f = minetest.find_node_near(pos, 1, {"group:flammable"}) - if not f then + --local f = minetest.find_node_near(pos, 1, {"group:flammable"}) + --if not f then minetest.remove_node(pos) - return - end + -- return + --end -- Restart timer - return true + return false end, drop = "", on_construct = function(pos) - minetest.get_node_timer(pos):start(math.random(30, 60)) + minetest.get_node_timer(pos):start(math.random(20, 30)) end, }) @@ -289,7 +289,7 @@ minetest.register_abm({ -- Enable the following ABMs according to 'enable fire' setting - +--[[ local fire_enabled = minetest.settings:get_bool("enable_fire") if fire_enabled == nil then -- enable_fire setting not specified, check for disable_fire @@ -362,4 +362,4 @@ else -- Fire enabled end, }) -end +end]]