Lava cooling: Increase interval to 2
authorparamat <paramat@users.noreply.github.com>
Thu, 27 Jul 2017 00:16:17 +0000 (01:16 +0100)
committerparamat <mat.gregory@virginmedia.com>
Tue, 1 Aug 2017 02:57:10 +0000 (03:57 +0100)
An excessive load has been reported caused by the node searching, so even
when no lava is present.

mods/default/functions.lua

index 327e0c8be46644e139ce2c93663f24e7be31bc2f..bdc30158cb43991dcfb778e0adbd9778cdf01124 100644 (file)
@@ -136,7 +136,7 @@ if minetest.settings:get_bool("enable_lavacooling") ~= false then
                label = "Lava cooling",
                nodenames = {"default:lava_source", "default:lava_flowing"},
                neighbors = {"group:cools_lava", "group:water"},
-               interval = 1,
+               interval = 2,
                chance = 2,
                catch_up = false,
                action = function(...)