forked from mtcontrib/food
Fixed small bug and disabled debug
This commit is contained in:
parent
99e837691a
commit
37cc9d8ff4
11
init.lua
11
init.lua
@ -8,10 +8,10 @@
|
|||||||
-- =====================================
|
-- =====================================
|
||||||
|
|
||||||
food = {
|
food = {
|
||||||
supported={},
|
supported = {},
|
||||||
atsup={},
|
atsup = {},
|
||||||
df={},
|
df = {},
|
||||||
debug=true
|
debug = false
|
||||||
}
|
}
|
||||||
|
|
||||||
function food.support(group,mod,item)
|
function food.support(group,mod,item)
|
||||||
@ -30,7 +30,7 @@ function food.support(group,mod,item)
|
|||||||
local data = minetest.registered_items[item]
|
local data = minetest.registered_items[item]
|
||||||
|
|
||||||
if not data then
|
if not data then
|
||||||
print("item '",item.."' not found")
|
print("item '"..item.."' not found")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -154,6 +154,7 @@ food.asupport("potato",function()
|
|||||||
minetest.register_craftitem("food:potato", {
|
minetest.register_craftitem("food:potato", {
|
||||||
description = "Potato",
|
description = "Potato",
|
||||||
inventory_image = "food_potato.png",
|
inventory_image = "food_potato.png",
|
||||||
|
groups = {food_potato = 1}
|
||||||
})
|
})
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "food:potato",
|
output = "food:potato",
|
||||||
|
Loading…
Reference in New Issue
Block a user