Skip to content

Commit f5d945f

Browse files
committed
- Fixed issue with non-chara indexes causing errors in EQP/metadata files.
1 parent 6dc5a93 commit f5d945f

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

xivModdingFramework/Mods/FileTypes/ItemMetadata.cs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,20 @@ internal static async Task ApplyMetadataBatched(List<ItemMetadata> data, IndexFi
314314
}
315315
}
316316

317-
// Batch install functions for these three.
318-
await _eqp.SaveEqpEntries(eqpEntries, dummyItem, index, modlist);
319-
await _eqp.SaveEqdpEntries(eqdpEntries, dummyItem, index, modlist);
320-
await _eqp.SaveGmpEntries(gmpEntries, dummyItem, index, modlist);
321317

322-
// The EST function already does batch applications by nature of how it works,
323-
// so just call it once for each of the four EST types represented.
324-
foreach (var kv in estEntries)
318+
if (index.DataFile == XivDataFile._04_Chara)
325319
{
326-
await Est.SaveExtraSkeletonEntries(kv.Key, kv.Value, dummyItem, index, modlist);
320+
// Batch install functions for these three.
321+
await _eqp.SaveEqpEntries(eqpEntries, dummyItem, index, modlist);
322+
await _eqp.SaveEqdpEntries(eqdpEntries, dummyItem, index, modlist);
323+
await _eqp.SaveGmpEntries(gmpEntries, dummyItem, index, modlist);
324+
325+
// The EST function already does batch applications by nature of how it works,
326+
// so just call it once for each of the four EST types represented.
327+
foreach (var kv in estEntries)
328+
{
329+
await Est.SaveExtraSkeletonEntries(kv.Key, kv.Value, dummyItem, index, modlist);
330+
}
327331
}
328332

329333

0 commit comments

Comments
 (0)