File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
xivModdingFramework/Mods/FileTypes Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -682,7 +682,7 @@ await Task.Run(async () =>
682
682
683
683
// ModList is updated now. Time to expand the Metadata files.
684
684
Dictionary < XivDataFile , IndexFile > indexFiles = new Dictionary < XivDataFile , IndexFile > ( ) ;
685
- Dictionary < XivDataFile , List < ItemMetadata > > metadataEntries = new Dictionary < XivDataFile , List < ItemMetadata > > ;
685
+ Dictionary < XivDataFile , List < ItemMetadata > > metadataEntries = new Dictionary < XivDataFile , List < ItemMetadata > > ( ) ;
686
686
foreach ( var file in filePaths )
687
687
{
688
688
if ( ErroneousFiles . Contains ( file ) ) continue ;
@@ -717,10 +717,16 @@ await Task.Run(async () =>
717
717
}
718
718
}
719
719
720
- foreach ( var ifKv in indexFiles )
720
+ try
721
721
{
722
- await ItemMetadata . ApplyMetadataBatched ( metadataEntries [ ifKv . Key ] , ifKv . Value , modList ) ;
722
+ foreach ( var ifKv in indexFiles )
723
+ {
724
+ await ItemMetadata . ApplyMetadataBatched ( metadataEntries [ ifKv . Key ] , ifKv . Value , modList ) ;
723
725
726
+ }
727
+ } catch ( Exception Ex )
728
+ {
729
+ throw new Exception ( "An error occured when attempting to expand the metadata entries.\n \n Error:" + Ex . Message ) ;
724
730
}
725
731
726
732
foreach ( var kv in indexFiles )
You can’t perform that action at this time.
0 commit comments