Reduce unnecessary redirection in OGPR

This commit is contained in:
Matt Nadareski
2025-01-14 00:19:29 -05:00
parent 45d6e026f8
commit 7b595d210b

View File

@@ -309,14 +309,8 @@ namespace SabreTools.DatFiles
// Then we want to get a mapping of all machines to parents // Then we want to get a mapping of all machines to parents
Dictionary<string, List<string>> parents = []; Dictionary<string, List<string>> parents = [];
foreach (string key in ItemsDB.SortedKeys) foreach (var machine in GetMachinesDB())
{ {
var items = GetItemsForBucketDB(key);
if (items == null || items.Count == 0)
continue;
var item = items.First();
var machine = ItemsDB.GetMachineForItem(item.Key);
if (machine.Value == null) if (machine.Value == null)
continue; continue;