fix some machines being unable to be deconstructed. (#11548)

This commit is contained in:
Nemanja
2022-09-27 02:47:05 -04:00
committed by GitHub
parent b16be5867f
commit c667b79200
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -101,7 +101,7 @@
- !type:WirePanel
steps:
- tool: Prying
doAfter: 0.25
doAfter: 2
- node: destroyedMachineFrame
entity: MachineFrameDestroyed