Skip loading unknown quests (e.g. for CN) shipped with the plugin
This commit is contained in:
parent
22949d0e32
commit
619b5431d5
@ -91,6 +91,8 @@ internal sealed class QuestRegistry
|
||||
_logger.LogInformation("Loading quests from assembly");
|
||||
|
||||
foreach ((ElementId questId, QuestRoot questRoot) in AssemblyQuestLoader.GetQuests())
|
||||
{
|
||||
try
|
||||
{
|
||||
var questInfo = _questData.GetQuestInfo(questId);
|
||||
if (questInfo is LeveInfo leveInfo)
|
||||
@ -104,6 +106,11 @@ internal sealed class QuestRegistry
|
||||
};
|
||||
_quests[quest.Id] = quest;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.LogWarning("Not loading unknown quest {QuestId} from assembly: {Message}", questId, e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
_logger.LogInformation("Loaded {Count} quests from assembly", _quests.Count);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user