diff --git a/Content.Client/Weapons/Melee/MeleeWeaponSystem.cs b/Content.Client/Weapons/Melee/MeleeWeaponSystem.cs index 48ab2fa5cf..40b7a4768b 100644 --- a/Content.Client/Weapons/Melee/MeleeWeaponSystem.cs +++ b/Content.Client/Weapons/Melee/MeleeWeaponSystem.cs @@ -89,7 +89,7 @@ public sealed partial class MeleeWeaponSystem : SharedMeleeWeaponSystem // it's kinda tricky. // I think as long as we make secondaries their own component it's probably fine // as long as guncomp has an alt-use key then it shouldn't be too much of a PITA to deal with. - if (HasComp(weaponUid)) + if (TryComp(weaponUid, out var gun) && gun.UseKey) { return; }