From 1303d8d79cf3bbbf5b5fb7651df487c19d092b08 Mon Sep 17 00:00:00 2001 From: TryHardo7 Date: Thu, 24 Oct 2024 15:11:14 +0300 Subject: [PATCH] changed pulling method --- Content.Shared/Movement/Pulling/Components/PullerComponent.cs | 4 ++-- Content.Shared/Movement/Pulling/Systems/PullingSystem.cs | 2 +- Content.Shared/SS220/DarkReaper/DarkReaperSharedSystem.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.Shared/Movement/Pulling/Components/PullerComponent.cs b/Content.Shared/Movement/Pulling/Components/PullerComponent.cs index 197d7cfd7c899e..e3621cf7275c95 100644 --- a/Content.Shared/Movement/Pulling/Components/PullerComponent.cs +++ b/Content.Shared/Movement/Pulling/Components/PullerComponent.cs @@ -36,9 +36,9 @@ public sealed partial class PullerComponent : Component public EntityUid? Pulling; /// - /// Does this entity need hands to be able to pull something? + /// Does this entity need hands to be able to pull something? SS220 DarkReaper Access /// - [DataField] + [DataField] [Access(Other = AccessPermissions.ReadWriteExecute)] public bool NeedsHands = true; [DataField] diff --git a/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs b/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs index 42467077e74990..d04143bf0251b2 100644 --- a/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs +++ b/Content.Shared/Movement/Pulling/Systems/PullingSystem.cs @@ -90,7 +90,7 @@ private void OnPullerStartup(Entity entity, ref ComponentStartu // networked for the space wizards to do it themselves // right after me, so this will work for now and I don't really care // COPIUM - if (!HasComp(entity)&&!HasComp(entity)) + if (!HasComp(entity)) return; entity.Comp.NeedsHands = false; diff --git a/Content.Shared/SS220/DarkReaper/DarkReaperSharedSystem.cs b/Content.Shared/SS220/DarkReaper/DarkReaperSharedSystem.cs index fbb1c9a0a83fe7..59075e261d150f 100644 --- a/Content.Shared/SS220/DarkReaper/DarkReaperSharedSystem.cs +++ b/Content.Shared/SS220/DarkReaper/DarkReaperSharedSystem.cs @@ -400,7 +400,7 @@ public virtual void ChangeForm(EntityUid uid, DarkReaperComponent comp, bool isM if (isMaterial) { - EnsureComp(uid); + EnsureComp(uid).NeedsHands = false; _tag.AddTag(uid, "DoorBumpOpener"); if (TryComp(uid, out var explosionResistanceComponent))