mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Replace more direct accessors to ItemDictionary
This commit is contained in:
@@ -169,9 +169,6 @@ namespace SabreTools.DatTools
|
||||
// Run cleaning per item
|
||||
CleanDatItem(item);
|
||||
}
|
||||
|
||||
// Assign back for caution
|
||||
datFile.Items[key] = items;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -838,7 +838,7 @@ namespace SabreTools.DatTools
|
||||
}
|
||||
|
||||
// Add the current machine to the current DatFile
|
||||
currentDat.Items[machine] = items;
|
||||
currentDat.Add(machine, items);
|
||||
currentSize += machineSize;
|
||||
}
|
||||
|
||||
|
||||
@@ -229,9 +229,6 @@ namespace SabreTools.DatTools
|
||||
if (items[i].GetFieldValue<Source?>(DatItem.SourceKey)?.Index != int.MaxValue)
|
||||
items[i].SetFieldValue<bool?>(DatItem.RemoveKey, true);
|
||||
}
|
||||
|
||||
// Set the list back, just in case
|
||||
datFile.Items[key] = items;
|
||||
}
|
||||
|
||||
watch.Stop();
|
||||
|
||||
Reference in New Issue
Block a user