From 7366da899b48266041d54dcff8835117772be01e Mon Sep 17 00:00:00 2001 From: Chomp Date: Mon, 3 Feb 2025 15:02:03 +0000 Subject: [PATCH] Renamed `IsSameItem` --- Libraries/Core/Helpers/ItemHelper.cs | 6 +++--- Libraries/Core/Services/FenceService.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/Core/Helpers/ItemHelper.cs b/Libraries/Core/Helpers/ItemHelper.cs index 48242ccf..0b068f48 100644 --- a/Libraries/Core/Helpers/ItemHelper.cs +++ b/Libraries/Core/Helpers/ItemHelper.cs @@ -98,7 +98,7 @@ public class ItemHelper( * @param compareUpdProperties Upd properties to compare between the items * @returns true if they are the same, false if they aren't */ - public bool isSameItems(List item1, List item2, HashSet compareUpdProperties = null) + public bool IsSameItems(List item1, List item2, HashSet compareUpdProperties = null) { if (item1.Count() != item2.Count) { @@ -113,7 +113,7 @@ public class ItemHelper( return false; } - if (!this.isSameItem(itemOf1, itemOf2, compareUpdProperties)) + if (!this.IsSameItem(itemOf1, itemOf2, compareUpdProperties)) { return false; } @@ -130,7 +130,7 @@ public class ItemHelper( * @param compareUpdProperties Upd properties to compare between the items * @returns true if they are the same, false if they aren't */ - public bool isSameItem(Item item1, Item item2, HashSet compareUpdProperties = null) + public bool IsSameItem(Item item1, Item item2, HashSet compareUpdProperties = null) { if (item1.Template != item2.Template) { diff --git a/Libraries/Core/Services/FenceService.cs b/Libraries/Core/Services/FenceService.cs index 42093548..35efb603 100644 --- a/Libraries/Core/Services/FenceService.cs +++ b/Libraries/Core/Services/FenceService.cs @@ -405,7 +405,7 @@ public class FenceService( existingFenceAssorts.Items, existingRootItem.Id ); - if (itemHelper.isSameItems(itemWithChildren, existingFullItemTree, fenceItemUpdCompareProperties)) + if (itemHelper.IsSameItems(itemWithChildren, existingFullItemTree, fenceItemUpdCompareProperties)) { // Guard against a missing stack count if (existingRootItem.Upd?.StackObjectsCount == null)