Only register hopper -> composter ABMs if composter mod is enabled

This commit is contained in:
AFCMS 2022-11-13 22:38:45 +01:00
parent 8d921c0671
commit 47eda5b69e
No known key found for this signature in database
GPG Key ID: 8720389A25B652E3

@ -593,6 +593,7 @@ minetest.register_abm({
end
})
if minetest.get_modpath("mcl_composters") then
minetest.register_abm({
label = "Bonemeal extraction from composter",
nodenames = { "mcl_hoppers:hopper", "mcl_hoppers:hopper_side" },
@ -696,6 +697,7 @@ minetest.register_abm({
end
end,
})
end
minetest.register_craft({
output = "mcl_hoppers:hopper",