From 6d727137c2f2bb77551620621b176aa700280b0c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 22 Nov 2017 03:04:20 +0100 Subject: [PATCH] Rain puts out fire faster --- mods/ENVIRONMENT/mcl_weather/rain.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/ENVIRONMENT/mcl_weather/rain.lua b/mods/ENVIRONMENT/mcl_weather/rain.lua index 1009cc3b8a..354a1f1d62 100644 --- a/mods/ENVIRONMENT/mcl_weather/rain.lua +++ b/mods/ENVIRONMENT/mcl_weather/rain.lua @@ -188,16 +188,16 @@ if mcl_weather.allow_abm then minetest.register_abm({ label = "Rain extinguishes fire", nodenames = {"mcl_fire:fire"}, - interval = 4.0, + interval = 2.0, chance = 2, action = function(pos, node, active_object_count, active_object_count_wider) if mcl_weather.rain.raining and mcl_weather.rain.extinguish_fire then - if mcl_weather.is_outdoor(pos) then - minetest.remove_node(pos) - minetest.sound_play("fire_extinguish_flame", {pos = pos, max_hear_distance = 16, gain = 0.15}) + if mcl_weather.is_outdoor(pos) then + minetest.remove_node(pos) + minetest.sound_play("fire_extinguish_flame", {pos = pos, max_hear_distance = 16, gain = 0.15}) + end end - end - end + end, }) -- Slowly fill up cauldrons