mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-19 01:21:05 +01:00
Only register hopper -> composter ABMs if composter mod is enabled
This commit is contained in:
parent
8d921c0671
commit
47eda5b69e
1 changed files with 86 additions and 84 deletions
|
@ -593,7 +593,8 @@ minetest.register_abm({
|
|||
end
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
if minetest.get_modpath("mcl_composters") then
|
||||
minetest.register_abm({
|
||||
label = "Bonemeal extraction from composter",
|
||||
nodenames = { "mcl_hoppers:hopper", "mcl_hoppers:hopper_side" },
|
||||
neighbors = { "mcl_composters:composter_ready" },
|
||||
|
@ -611,9 +612,9 @@ minetest.register_abm({
|
|||
inv:add_item("main", "mcl_dye:white")
|
||||
end
|
||||
end,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
minetest.register_abm({
|
||||
label = "Add compostable items on composter",
|
||||
nodenames = { "mcl_hoppers:hopper" },
|
||||
neighbors = {
|
||||
|
@ -695,7 +696,8 @@ minetest.register_abm({
|
|||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = "mcl_hoppers:hopper",
|
||||
|
|
Loading…
Reference in a new issue