Do not run kelp lbm every time
This commit is contained in:
parent
952c72c414
commit
80f038da4a
|
@ -525,15 +525,6 @@ function kelp.lbm_register(pos)
|
|||
kelp.init_age(pos, nil, true)
|
||||
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
|
||||
--------------------------------------------------------------------------------
|
||||
|
@ -725,6 +716,19 @@ minetest.register_craft({
|
|||
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({
|
||||
label = "Kelp drops",
|
||||
nodenames = { "group:kelp" },
|
||||
|
|
Loading…
Reference in New Issue