Add proper check for mobs_redo and remove explicit dependency

master
Tai @ Flex 2017-01-30 20:37:20 +00:00
parent 6a841b1cf8
commit d763c1895c
2 changed files with 1 additions and 3 deletions

View File

@ -1,3 +1,2 @@
default
wool
mobs?

View File

@ -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",