From 1f904ddb81622fb73c2551fd4ab0cddd7a3b6025 Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:24:31 +1000 Subject: [PATCH] Fix crusher showing popup on swing (#19791) --- Content.Shared/Wieldable/WieldableSystem.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Content.Shared/Wieldable/WieldableSystem.cs b/Content.Shared/Wieldable/WieldableSystem.cs index c85ea463cd..020e5c2ad0 100644 --- a/Content.Shared/Wieldable/WieldableSystem.cs +++ b/Content.Shared/Wieldable/WieldableSystem.cs @@ -6,6 +6,7 @@ using Content.Shared.Interaction.Events; using Content.Shared.Item; using Content.Shared.Popups; using Content.Shared.Verbs; +using Content.Shared.Weapons.Melee; using Content.Shared.Weapons.Melee.Events; using Content.Shared.Weapons.Melee.Components; using Content.Shared.Weapons.Ranged.Components; @@ -59,7 +60,11 @@ public sealed class WieldableSystem : EntitySystem !wieldable.Wielded) { args.Cancelled = true; - args.Message = Loc.GetString("wieldable-component-requires", ("item", uid)); + + if (!HasComp(uid) && !HasComp(uid)) + { + args.Message = Loc.GetString("wieldable-component-requires", ("item", uid)); + } } }