From 7fe20a49c908421138bd2e44992a34a7b9babd22 Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 20 May 2025 10:51:49 +0100 Subject: [PATCH] Use `nameof` inplace of `toString` for `_slotsAsStrings` values --- .../Helpers/ItemHelper.cs | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs b/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs index e856e5e0..335bc215 100644 --- a/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs +++ b/Libraries/SPTarkov.Server.Core/Helpers/ItemHelper.cs @@ -41,20 +41,20 @@ public class ItemHelper( protected static readonly FrozenSet _slotsAsStrings = [ - EquipmentSlots.Headwear.ToString(), - EquipmentSlots.Earpiece.ToString(), - EquipmentSlots.FaceCover.ToString(), - EquipmentSlots.ArmorVest.ToString(), - EquipmentSlots.Eyewear.ToString(), - EquipmentSlots.ArmBand.ToString(), - EquipmentSlots.TacticalVest.ToString(), - EquipmentSlots.Pockets.ToString(), - EquipmentSlots.Backpack.ToString(), - EquipmentSlots.SecuredContainer.ToString(), - EquipmentSlots.FirstPrimaryWeapon.ToString(), - EquipmentSlots.SecondPrimaryWeapon.ToString(), - EquipmentSlots.Holster.ToString(), - EquipmentSlots.Scabbard.ToString() + nameof(EquipmentSlots.Headwear), + nameof(EquipmentSlots.Earpiece), + nameof(EquipmentSlots.FaceCover), + nameof(EquipmentSlots.ArmorVest), + nameof(EquipmentSlots.Eyewear), + nameof(EquipmentSlots.ArmBand), + nameof(EquipmentSlots.TacticalVest), + nameof(EquipmentSlots.Pockets), + nameof(EquipmentSlots.Backpack), + nameof(EquipmentSlots.SecuredContainer), + nameof(EquipmentSlots.FirstPrimaryWeapon), + nameof(EquipmentSlots.SecondPrimaryWeapon), + nameof(EquipmentSlots.Holster), + nameof(EquipmentSlots.Scabbard) ]; protected static readonly FrozenSet _dogTagTpls =