From a7b302bd3ce50f271097c4fe8e11ad49db2126f5 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 8 Aug 2023 03:05:18 +1000 Subject: [PATCH] Fix crusher altfire (#18826) --- Content.Client/Weapons/Melee/MeleeWeaponSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }