Make it possible to override the default.cool_lava_* functions
[oweals/minetest_game.git] / mods / default / init.lua
index a481d37e22426b9d3ee0fad389d50193b870f355..c29a6c0a73daa0cf39b6d05c2f4f3d2343d4496c 100644 (file)
@@ -2028,7 +2028,9 @@ minetest.register_abm({
        neighbors = {"group:water"},
        interval = 1,
        chance = 1,
-       action = default.cool_lava_flowing,
+       action = function(pos, node, active_object_count, active_object_count_wider)
+               default.cool_lava_flowing(pos, node, active_object_count, active_object_count_wider)
+       end,
 })
 
 minetest.register_abm({
@@ -2036,7 +2038,9 @@ minetest.register_abm({
        neighbors = {"group:water"},
        interval = 1,
        chance = 1,
-       action = default.cool_lava_source,
+       action = function(pos, node, active_object_count, active_object_count_wider)
+               default.cool_lava_source(pos, node, active_object_count, active_object_count_wider)
+       end,
 })
 
 -- END