From: PilzAdam Date: Mon, 18 Mar 2013 23:04:17 +0000 (+0100) Subject: Make it possible to override the default.cool_lava_* functions X-Git-Tag: 0.4.6~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d5c373e290024790cc5e9fb9afcf03ef987f13ef;p=oweals%2Fminetest_game.git Make it possible to override the default.cool_lava_* functions --- diff --git a/mods/default/init.lua b/mods/default/init.lua index a481d37e..c29a6c0a 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -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