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)
|
||||
{
|
||||
//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;
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
- !type:WirePanel
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 0.25
|
||||
doAfter: 2
|
||||
|
||||
- node: destroyedMachineFrame
|
||||
entity: MachineFrameDestroyed
|
||||
|
||||
Reference in New Issue
Block a user