Add option to disable lavacooling (#1726)
This commit is contained in:
parent
f0304622f6
commit
41f30187f4
@ -131,18 +131,19 @@ default.cool_lava = function(pos, node)
|
|||||||
{pos = pos, max_hear_distance = 16, gain = 0.25})
|
{pos = pos, max_hear_distance = 16, gain = 0.25})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_abm({
|
if minetest.setting_getbool("enable_lavacooling") ~= false then
|
||||||
label = "Lava cooling",
|
minetest.register_abm({
|
||||||
nodenames = {"default:lava_source", "default:lava_flowing"},
|
label = "Lava cooling",
|
||||||
neighbors = {"group:cools_lava", "group:water"},
|
nodenames = {"default:lava_source", "default:lava_flowing"},
|
||||||
interval = 1,
|
neighbors = {"group:cools_lava", "group:water"},
|
||||||
chance = 2,
|
interval = 1,
|
||||||
catch_up = false,
|
chance = 2,
|
||||||
action = function(...)
|
catch_up = false,
|
||||||
default.cool_lava(...)
|
action = function(...)
|
||||||
end,
|
default.cool_lava(...)
|
||||||
})
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
--
|
--
|
||||||
-- optimized helper to put all items in an inventory into a drops list
|
-- optimized helper to put all items in an inventory into a drops list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user