mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 01:30:44 -05:00
only purge inactive repeatables When repeatableToChangeClone
exists
This commit is contained in:
parent
8f416c5dee
commit
aa928ac43d
@ -571,10 +571,6 @@ export class RepeatableQuestController {
|
|||||||
|
|
||||||
// Clone data before we send it to client
|
// Clone data before we send it to client
|
||||||
const repeatableToChangeClone = this.cloner.clone(repeatablesInProfile);
|
const repeatableToChangeClone = this.cloner.clone(repeatablesInProfile);
|
||||||
|
|
||||||
// Purge inactive repeatables
|
|
||||||
repeatableToChangeClone.inactiveQuests = [];
|
|
||||||
|
|
||||||
if (!repeatableToChangeClone) {
|
if (!repeatableToChangeClone) {
|
||||||
// Unable to find quest being replaced
|
// Unable to find quest being replaced
|
||||||
const message = this.localisationService.getText("quest-unable_to_find_repeatable_to_replace");
|
const message = this.localisationService.getText("quest-unable_to_find_repeatable_to_replace");
|
||||||
@ -583,6 +579,9 @@ export class RepeatableQuestController {
|
|||||||
return this.httpResponse.appendErrorToOutput(output, message);
|
return this.httpResponse.appendErrorToOutput(output, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Purge inactive repeatables
|
||||||
|
repeatableToChangeClone.inactiveQuests = [];
|
||||||
|
|
||||||
// Nullguard
|
// Nullguard
|
||||||
output.profileChanges[sessionID].repeatableQuests ||= [];
|
output.profileChanges[sessionID].repeatableQuests ||= [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user