diff --git a/Content.Server/Strip/StrippableSystem.cs b/Content.Server/Strip/StrippableSystem.cs index 686570f7dc..d9f084252a 100644 --- a/Content.Server/Strip/StrippableSystem.cs +++ b/Content.Server/Strip/StrippableSystem.cs @@ -1,3 +1,4 @@ +using System.Linq; using Content.Server.Administration.Logs; using Content.Server.Ensnaring; using Content.Shared.CombatMode; @@ -20,7 +21,6 @@ using Content.Shared.Verbs; using Robust.Server.GameObjects; using Robust.Shared.Player; using Robust.Shared.Utility; -using System.Linq; namespace Content.Server.Strip { @@ -112,7 +112,7 @@ namespace Content.Server.Strip if (TryComp(user, out var mode) && mode.IsInCombatMode && !openInCombat) return; - if (TryComp(user, out var actor)) + if (TryComp(user, out var actor) && HasComp(user)) { if (_userInterfaceSystem.SessionHasOpenUi(strippable, StrippingUiKey.Key, actor.PlayerSession)) return; diff --git a/Content.Shared/Strip/SharedStrippableSystem.cs b/Content.Shared/Strip/SharedStrippableSystem.cs index 64dd6a81f3..f2e9bff8d4 100644 --- a/Content.Shared/Strip/SharedStrippableSystem.cs +++ b/Content.Shared/Strip/SharedStrippableSystem.cs @@ -46,14 +46,16 @@ public abstract class SharedStrippableSystem : EntitySystem args.Handled = true; args.CanDrop |= uid == args.User && HasComp(args.Dragged) && - HasComp(args.User); + HasComp(args.User) && + HasComp(args.User); } private void OnCanDrop(EntityUid uid, StrippableComponent component, ref CanDropDraggedEvent args) { args.CanDrop |= args.Target == args.User && HasComp(args.User) && - HasComp(args.User); + HasComp(args.User) && + HasComp(args.User); if (args.CanDrop) args.Handled = true;