From 26422865753a6d15293cbc089bba3a10a15ca365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Lu=C3=ADs=20Lucarelo=20Lamonato?= Date: Wed, 6 Mar 2024 16:02:53 -0300 Subject: [PATCH] fix: error in foods.lua (#2363) --- data/scripts/actions/items/foods.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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