Fixed loop problem on challenges (e.g. QuestBundle_Event_Galileo)

This commit is contained in:
MaikyM 2019-12-12 07:29:18 -06:00
parent b35f2b74b2
commit a145564524

View File

@ -275,6 +275,10 @@ namespace FModel.Methods.Assets.IconCreator.ChallengeID
string primaryAssetNameFullPath = AssetEntries.AssetEntriesDict.Where(x => x.Key.Contains("/" + primaryAssetNameToken.Value<string>())).Select(d => d.Key).FirstOrDefault();
if (!string.IsNullOrEmpty(primaryAssetNameFullPath))
{
// Prevents loops
if (string.Equals(assetPath, primaryAssetNameFullPath.Substring(0, primaryAssetNameFullPath.LastIndexOf("."))))
continue;
new UpdateMyProcessEvents(System.IO.Path.GetFileNameWithoutExtension(primaryAssetNameFullPath), "Waiting").Update();
GetQuestData(BundleProperties, primaryAssetNameFullPath.Substring(0, primaryAssetNameFullPath.LastIndexOf(".", StringComparison.InvariantCultureIgnoreCase)));
}