mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-24 17:20:19 +01:00
remove another ABM
This commit is contained in:
parent
d1620a6f39
commit
beb89c5a64
@ -416,13 +416,13 @@ minetest.register_node("df_primordial_items:giant_hypha_apical_mapgen", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Just in case mapgen fails to trigger the timer on a mapgen mycelium this ABM will clean up.
|
-- Just in case mapgen fails to trigger the timer on a mapgen mycelium this LBM will clean up.
|
||||||
minetest.register_abm({
|
minetest.register_lbm({
|
||||||
label = "df_primordial_items ensure giant mycelium growth",
|
label = "ensure mapgen mycelium has a timer running",
|
||||||
nodenames = {"df_primordial_items:giant_hypha_apical_mapgen"},
|
name = "df_primordial_items:ensure_mapgen_mycelium_timer",
|
||||||
interval = 10.0,
|
nodenames = {"df_primordial_items:giant_hypha_apical_mapgen"},
|
||||||
chance = 1,
|
run_at_every_load = true,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node)
|
||||||
local timer = minetest.get_node_timer(pos)
|
local timer = minetest.get_node_timer(pos)
|
||||||
if not timer:is_started() then
|
if not timer:is_started() then
|
||||||
timer:start(math.random(1,10))
|
timer:start(math.random(1,10))
|
||||||
|
Loading…
Reference in New Issue
Block a user