Questify: Cleanup. (#1280)
This commit is contained in:
parent
ccd3d9bd3c
commit
ca0a108e70
1 changed files with 2 additions and 2 deletions
|
|
@ -705,7 +705,7 @@ async function reportPlayQuestProgress(
|
|||
const attempts = options.attempts ?? 1;
|
||||
const delay = options.delay ?? 2500;
|
||||
const timeout = options.timeout ?? 10000;
|
||||
const applicationId = options.applicationId ?? entry.task.applications?.[0]?.id ?? quest.config.application?.id;
|
||||
const applicationId = options.applicationId ?? entry.task.applications?.[0]?.id;
|
||||
|
||||
for (let attempt = 1; attempt <= attempts; attempt++) {
|
||||
try {
|
||||
|
|
@ -1153,7 +1153,7 @@ export function stopAutoCompletesForRunningGames(gameIds: string[]): boolean {
|
|||
for (const entry of Array.from(activeAutoCompletes.values())) {
|
||||
const quest = QuestStore.getQuest(entry.questId);
|
||||
|
||||
if (entry.kind === "play" && quest && gameIds.includes(quest.config.application.id)) {
|
||||
if (entry.kind === "play" && quest && entry.task.applications?.some(({ id }) => gameIds.includes(id))) {
|
||||
stopQuestAutoComplete(quest, { manual: false, preserveResume: false });
|
||||
stoppedAny = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue