mirror of
https://github.com/minetest-mods/unified_inventory.git
synced 2024-08-21 13:54:10 +02:00
Add optional farming dependency for bag craft
This commit is contained in:
parent
7d039147e7
commit
1c11de10d5
3
bags.lua
3
bags.lua
@ -214,6 +214,7 @@ minetest.register_tool("unified_inventory:bag_large", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- register bag crafts
|
-- register bag crafts
|
||||||
|
if minetest.get_modpath("farming") ~= nil then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "unified_inventory:bag_small",
|
output = "unified_inventory:bag_small",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -240,4 +241,4 @@ minetest.register_craft({
|
|||||||
{"farming:cotton", "unified_inventory:bag_medium", "farming:cotton"},
|
{"farming:cotton", "unified_inventory:bag_medium", "farming:cotton"},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
creative?
|
creative?
|
||||||
intllib?
|
intllib?
|
||||||
datastorage?
|
datastorage?
|
||||||
|
farming?
|
||||||
|
Loading…
Reference in New Issue
Block a user