diff --git a/depends.txt b/depends.txt index 369612e..470ec30 100644 --- a/depends.txt +++ b/depends.txt @@ -1,3 +1,2 @@ default wool -mobs? diff --git a/init.lua b/init.lua index 77d2aed..140b0b9 100644 --- a/init.lua +++ b/init.lua @@ -133,8 +133,7 @@ for _,colourdesc in pairs(wooldyes) do end minetest.register_alias("backpacks:backpack_wool", "backpacks:backpack_wool_white") - -if mobs and mobs.redo then +if minetest.get_modpath("mobs") and mobs and mobs.redo then -- Leather backpack minetest.register_node("backpacks:backpack_leather", { description = "Leather Backpack",