diff --git a/Libraries/SPTarkov.Server.Core/Extensions/ItemExtensions.cs b/Libraries/SPTarkov.Server.Core/Extensions/ItemExtensions.cs index b262629c..769f6393 100644 --- a/Libraries/SPTarkov.Server.Core/Extensions/ItemExtensions.cs +++ b/Libraries/SPTarkov.Server.Core/Extensions/ItemExtensions.cs @@ -249,14 +249,7 @@ namespace SPTarkov.Server.Core.Extensions public static bool IsVertical(this ItemLocation itemLocation) { - var castValue = itemLocation.R.ToString(); - return castValue == "1" - || string.Equals(castValue, "vertical", StringComparison.OrdinalIgnoreCase) - || string.Equals( - itemLocation.Rotation?.ToString(), - "vertical", - StringComparison.OrdinalIgnoreCase - ); + return itemLocation.R == ItemRotation.Vertical; } /// diff --git a/Libraries/SPTarkov.Server.Core/Helpers/InventoryHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/InventoryHelper.cs index 0a35af61..bf31b821 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/InventoryHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/InventoryHelper.cs @@ -335,7 +335,7 @@ public class InventoryHelper( return; } - // Store details for object, incuding container item will be placed in + // Store details for object, including container item will be placed in rootItemAdded.ParentId = containerId; rootItemAdded.SlotId = desiredSlotId; rootItemAdded.Location = new ItemLocation