From c667b79200230ceb859eb7024ea50ad29d0d94b4 Mon Sep 17 00:00:00 2001 From: Nemanja <98561806+EmoGarbage404@users.noreply.github.com> Date: Tue, 27 Sep 2022 02:47:05 -0400 Subject: [PATCH] fix some machines being unable to be deconstructed. (#11548) --- Content.Server/Construction/Conditions/WirePanel.cs | 3 ++- .../Recipes/Construction/Graphs/machines/machine.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Content.Server/Construction/Conditions/WirePanel.cs b/Content.Server/Construction/Conditions/WirePanel.cs index 8b96276b12..224ad32938 100644 --- a/Content.Server/Construction/Conditions/WirePanel.cs +++ b/Content.Server/Construction/Conditions/WirePanel.cs @@ -13,8 +13,9 @@ namespace Content.Server.Construction.Conditions public bool Condition(EntityUid uid, IEntityManager entityManager) { + //if it doesn't have a wire panel, then just let it work. if (!entityManager.TryGetComponent(uid, out WiresComponent? wires)) - return false; + return true; return wires.IsPanelOpen == Open; } diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/machines/machine.yml b/Resources/Prototypes/Recipes/Construction/Graphs/machines/machine.yml index 67951a57fa..a9fc12f9a7 100644 --- a/Resources/Prototypes/Recipes/Construction/Graphs/machines/machine.yml +++ b/Resources/Prototypes/Recipes/Construction/Graphs/machines/machine.yml @@ -101,7 +101,7 @@ - !type:WirePanel steps: - tool: Prying - doAfter: 0.25 + doAfter: 2 - node: destroyedMachineFrame entity: MachineFrameDestroyed