prevent client/quest/list
handler from showing quests from traders who no longer exist
This commit is contained in:
parent
538a5f2807
commit
f9a1d117ea
@ -104,6 +104,15 @@ export class QuestController
|
||||
continue;
|
||||
}
|
||||
|
||||
// Player can use trader mods then remove them, leaving quests behind
|
||||
const trader = profile.TradersInfo[quest.traderId];
|
||||
if (!trader)
|
||||
{
|
||||
this.logger.debug(`Unable to show quest: ${quest.QuestName} as its for a trader: ${quest.traderId} that no longer exists.`);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
const questRequirements = this.questConditionHelper.getQuestConditions(quest.conditions.AvailableForStart);
|
||||
const loyaltyRequirements = this.questConditionHelper.getLoyaltyConditions(
|
||||
quest.conditions.AvailableForStart,
|
||||
|
Loading…
Reference in New Issue
Block a user