mirror of
https://github.com/minetest/minetest_game.git
synced 2024-11-10 01:33:52 +01:00
Default: Shorter and better ABMs (#1739)
Action of some abm's call functions directly, instead of calling the function inside a function.
This commit is contained in:
parent
b25317fc64
commit
e523c3a296
@ -139,9 +139,7 @@ if minetest.setting_getbool("enable_lavacooling") ~= false then
|
|||||||
interval = 1,
|
interval = 1,
|
||||||
chance = 2,
|
chance = 2,
|
||||||
catch_up = false,
|
catch_up = false,
|
||||||
action = function(...)
|
action = default.cool_lava,
|
||||||
default.cool_lava(...)
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -224,9 +222,7 @@ minetest.register_abm({
|
|||||||
neighbors = {"group:sand"},
|
neighbors = {"group:sand"},
|
||||||
interval = 12,
|
interval = 12,
|
||||||
chance = 83,
|
chance = 83,
|
||||||
action = function(...)
|
action = default.grow_cactus
|
||||||
default.grow_cactus(...)
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_abm({
|
minetest.register_abm({
|
||||||
@ -235,9 +231,7 @@ minetest.register_abm({
|
|||||||
neighbors = {"default:dirt", "default:dirt_with_grass"},
|
neighbors = {"default:dirt", "default:dirt_with_grass"},
|
||||||
interval = 14,
|
interval = 14,
|
||||||
chance = 71,
|
chance = 71,
|
||||||
action = function(...)
|
action = default.grow_papyrus
|
||||||
default.grow_papyrus(...)
|
|
||||||
end
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user