Default: Revert "Default: Shorter and better ABMs"
authorvorunbekannt75@web.de <vorunbekannt75@web.de>
Tue, 6 Jun 2017 17:20:58 +0000 (19:20 +0200)
committersfan5 <sfan5@live.de>
Sun, 19 Nov 2017 16:16:32 +0000 (17:16 +0100)
This reverts commit e523c3a2965afe76b9102b67992e15fafba1594a to re-enable
the overriding and redefinition of these global functions.

mods/default/functions.lua

index 5dc22cab05d5c166da07bb758c8737788c1bdb69..327e0c8be46644e139ce2c93663f24e7be31bc2f 100644 (file)
@@ -139,7 +139,9 @@ if minetest.settings:get_bool("enable_lavacooling") ~= false then
                interval = 1,
                chance = 2,
                catch_up = false,
-               action = default.cool_lava,
+               action = function(...)
+                       default.cool_lava(...)
+               end,
        })
 end
 
@@ -222,7 +224,9 @@ minetest.register_abm({
        neighbors = {"group:sand"},
        interval = 12,
        chance = 83,
-       action = default.grow_cactus
+       action = function(...)
+               default.grow_cactus(...)
+       end
 })
 
 minetest.register_abm({
@@ -231,7 +235,9 @@ minetest.register_abm({
        neighbors = {"default:dirt", "default:dirt_with_grass"},
        interval = 14,
        chance = 71,
-       action = default.grow_papyrus
+       action = function(...)
+               default.grow_papyrus(...)
+       end
 })