mirror of
https://github.com/4sval/FModel.git
synced 2026-04-21 17:17:49 -05:00
Fixed loop problem on challenges (e.g. QuestBundle_Event_Galileo)
This commit is contained in:
parent
b35f2b74b2
commit
a145564524
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user