mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Add CopyMachineInformation tests
This commit is contained in:
@@ -129,7 +129,11 @@ namespace SabreTools.DatItems
|
||||
/// <param name="item">Existing item to copy information from</param>
|
||||
public void CopyMachineInformation(DatItem item)
|
||||
{
|
||||
var machine = item.GetFieldValue<Machine>(DatItem.MachineKey);
|
||||
// If there is no machine
|
||||
if (!item._internal.ContainsKey(DatItem.MachineKey))
|
||||
return;
|
||||
|
||||
var machine = item.GetFieldValue<Machine?>(DatItem.MachineKey);
|
||||
CopyMachineInformation(machine);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user