Fire: Use 'enable fire' setting instead of 'disable fire'

Esse commit está contido em:
paramat
2016-08-15 21:29:52 +01:00
commit cabf80b743
2 arquivos alterados com 13 adições e 6 exclusões

Ver Arquivo

@@ -235,9 +235,16 @@ minetest.register_abm({
})
-- Enable the following ABMs according to 'disable fire' setting
-- Enable the following ABMs according to 'enable fire' setting
if minetest.setting_getbool("disable_fire") then
local fire_enabled = minetest.setting_getbool("enable_fire")
if fire_enabled == nil then
-- New setting not specified, check for old setting.
-- If old setting is also not specified, 'not nil' is true.
fire_enabled = not minetest.setting_getbool("disable_fire")
end
if not fire_enabled then
-- Remove basic flames only
@@ -250,7 +257,7 @@ if minetest.setting_getbool("disable_fire") then
action = minetest.remove_node,
})
else
else -- Fire enabled
-- Ignite neighboring nodes, add basic flames