Replace more direct accessors to ItemDictionary

This commit is contained in:
Matt Nadareski
2025-01-13 09:37:59 -05:00
parent 3c4de2cc07
commit c94d8d712f
5 changed files with 30 additions and 29 deletions

View File

@@ -797,7 +797,7 @@ namespace SabreTools.DatTools
foreach (string machine in keys)
{
// Get the current machine
var items = datFile.Items[machine];
var items = datFile.GetItemsForBucket(machine);
if (items == null || items.Count == 0)
{
_staticLogger.Error($"{machine} contains no items and will be skipped");