Skip to content

Commit

Permalink
Ignoring none existing quests
Browse files Browse the repository at this point in the history
  • Loading branch information
prooheckcp committed Dec 18, 2024
1 parent 6c9ebfb commit 93dcb87
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions RoQuest/Client/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -982,14 +982,26 @@ function RoQuestClient:_OnPlayerDataChanged(playerQuestData: PlayerQuestData)
self._PlayerQuestData = playerQuestData

for questId: string, questProgress: QuestProgress in playerQuestData.InProgress do
if not self._StaticQuests[questId] then
continue
end

self:_GiveQuest(questId, questProgress)
end

for questId: string, questProgress: QuestProgress in playerQuestData.Completed do
if not self._StaticQuests[questId] then
continue
end

self:_GiveQuest(questId, questProgress)
end

for questId: string, questProgress: QuestProgress in playerQuestData.Delivered do
if not self._StaticQuests[questId] then
continue
end

self:_GiveQuest(questId, questProgress)
end

Expand Down

0 comments on commit 93dcb87

Please sign in to comment.