diff --git a/data/scripts/actions/items/foods.lua b/data/scripts/actions/items/foods.lua index 9c91d0da6c2..f9cf4842b98 100644 --- a/data/scripts/actions/items/foods.lua +++ b/data/scripts/actions/items/foods.lua @@ -136,11 +136,13 @@ function food.onUse(player, item, fromPosition, target, toPosition, isHotkey) return true end - -- The Secret Library Quest - if player:getStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood) ~= 1 then - if player:getPosition():isInRange(Position(32961, 32280, 10), Position(32964, 32286, 10)) then - player:say("Fames est optimus coquus", TALKTYPE_MONSTER_SAY) - player:setStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood, 1) + if IsRunningGlobalDatapack() then + -- The Secret Library Quest + if player:getStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood) ~= 1 then + if player:getPosition():isInRange(Position(32961, 32280, 10), Position(32964, 32286, 10)) then + player:say("Fames est optimus coquus", TALKTYPE_MONSTER_SAY) + player:setStorageValue(Storage.Quest.U11_80.TheSecretLibrary.Darashia.eatenFood, 1) + end end end