Simplified IsVertical()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user