Merge pull request #61 from Wuzzy2/bagdep
Add optional farming dependency for bag craft
This commit is contained in:
commit
8332707198
3
bags.lua
3
bags.lua
@ -215,6 +215,7 @@ minetest.register_tool("unified_inventory:bag_large", {
|
||||
})
|
||||
|
||||
-- register bag crafts
|
||||
if minetest.get_modpath("farming") ~= nil then
|
||||
minetest.register_craft({
|
||||
output = "unified_inventory:bag_small",
|
||||
recipe = {
|
||||
@ -241,4 +242,4 @@ minetest.register_craft({
|
||||
{"farming:cotton", "unified_inventory:bag_medium", "farming:cotton"},
|
||||
},
|
||||
})
|
||||
|
||||
end
|
||||
|
@ -1,4 +1,4 @@
|
||||
creative?
|
||||
intllib?
|
||||
datastorage?
|
||||
|
||||
farming?
|
||||
|
Loading…
Reference in New Issue
Block a user