Update init.lua to register dropper callback.

This commit is contained in:
Michieal 2023-02-08 21:09:16 -05:00
parent 14383d6c6f
commit f81d530912

View file

@ -34,6 +34,14 @@ minetest.register_abm({
mcl_bamboo.grow_bamboo(pos, false)
end,
})
if minetest.get_modpath("mesecons_mvps") then
if mesecons_mvps then
for x = 1, #mcl_bamboo.bamboo_index do
mesecon.register_mvps_dropper(mcl_bamboo.bamboo_index[x], mcl_bamboo.break_orphaned)
end
end
else
minetest.register_abm({
label = "Break Orphaned Bamboo",
nodenames = mcl_bamboo.bamboo_index,
@ -62,6 +70,7 @@ minetest.register_abm({
minetest.add_item(pos, istack)
end,
})
end
-- Base Aliases.
local SCAFFOLDING_NAME = "mcl_bamboo:scaffolding"