fix some machines being unable to be deconstructed. (#11548)
This commit is contained in:
@@ -13,8 +13,9 @@ namespace Content.Server.Construction.Conditions
|
|||||||
|
|
||||||
public bool Condition(EntityUid uid, IEntityManager entityManager)
|
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))
|
if (!entityManager.TryGetComponent(uid, out WiresComponent? wires))
|
||||||
return false;
|
return true;
|
||||||
|
|
||||||
return wires.IsPanelOpen == Open;
|
return wires.IsPanelOpen == Open;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
- !type:WirePanel
|
- !type:WirePanel
|
||||||
steps:
|
steps:
|
||||||
- tool: Prying
|
- tool: Prying
|
||||||
doAfter: 0.25
|
doAfter: 2
|
||||||
|
|
||||||
- node: destroyedMachineFrame
|
- node: destroyedMachineFrame
|
||||||
entity: MachineFrameDestroyed
|
entity: MachineFrameDestroyed
|
||||||
|
|||||||
Reference in New Issue
Block a user