diff --git a/data/scripts/actions/items/foods.lua b/data/scripts/actions/items/foods.lua index adce2e46244..4a8072d163e 100644 --- a/data/scripts/actions/items/foods.lua +++ b/data/scripts/actions/items/foods.lua @@ -125,7 +125,7 @@ local foods = { local food = Action() function food.onUse(player, item, fromPosition, target, toPosition, isHotkey) - local itemFood = setting[item.itemid] + local itemFood = foods[item.itemid] if not itemFood then return false end