mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Update init.lua to register dropper callback.
This commit is contained in:
parent
14383d6c6f
commit
f81d530912
1 changed files with 33 additions and 24 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue