From eff364e73b3caf930c3eb7a6ea32829cadcb647b Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Wed, 13 Jan 2016 08:09:13 -0500 Subject: [PATCH] No fire above y 14400 --- mods/fire/init.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/fire/init.lua b/mods/fire/init.lua index fc55b8d..b43fb8a 100644 --- a/mods/fire/init.lua +++ b/mods/fire/init.lua @@ -182,6 +182,7 @@ minetest.register_abm({ -- Enable the following ABMs according to 'disable fire' setting +--[[ if minetest.setting_getbool("disable_fire") then -- Remove basic flames only @@ -197,6 +198,7 @@ if minetest.setting_getbool("disable_fire") then }) else +--]] -- Ignite neighboring nodes, add basic flames @@ -208,7 +210,9 @@ else catch_up = false, action = function(p0, node, _, _) -- If there is water or stuff like that around node, don't ignite - if fire.flame_should_extinguish(p0) then + -- Don't ignite if y > 14400 (SkyWorld). + if p0.y > 14400 or + fire.flame_should_extinguish(p0) then return end local p = fire.find_pos_for_flame_around(p0) @@ -242,7 +246,7 @@ else end, }) -end +--end -- Rarely ignite things from far