1
0
Fork 0

Do not run kelp lbm every time

This commit is contained in:
ancientmarinerdev 2023-03-30 20:10:10 +01:00 committed by Gitea
parent 952c72c414
commit 80f038da4a
1 changed files with 13 additions and 9 deletions

View File

@ -525,15 +525,6 @@ function kelp.lbm_register(pos)
kelp.init_age(pos, nil, true) kelp.init_age(pos, nil, true)
end end
minetest.register_lbm({
label = "Kelp initialise",
name = "mcl_ocean:kelp_init",
nodenames = { "group:kelp" },
run_at_every_load = true, -- so old kelps are also initialised
action = kelp.lbm_register,
})
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Kelp registration API -- Kelp registration API
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
@ -725,6 +716,19 @@ minetest.register_craft({
burntime = 200, burntime = 200,
}) })
--------------------------------------------------------------------------------
-- Kelp ABM + LBM's
--------------------------------------------------------------------------------
minetest.register_lbm({
label = "Kelp initialise",
name = "mcl_ocean:kelp_init_83",
nodenames = { "group:kelp" },
run_at_every_load = false, -- so old kelps are also initialised
action = kelp.lbm_register,
})
minetest.register_abm({ minetest.register_abm({
label = "Kelp drops", label = "Kelp drops",
nodenames = { "group:kelp" }, nodenames = { "group:kelp" },