Another exploit fix (#114)

* Revert "Critical fix(#106)"

This reverts commit b8eeed39e7f544efd9d7a4ae6f45f529afe21145.

* Але оп

---------

Co-authored-by: Mona Hmiza <>
# Conflicts:
#	Content.Server/DeviceNetwork/Systems/DeviceNetworkSystem.cs
This commit is contained in:
RavMorgan
2023-05-26 03:50:42 +03:00
committed by Remuchi
parent 8a1ba0d8f9
commit f2df7eeb89
2 changed files with 11 additions and 30 deletions

View File

@@ -95,10 +95,7 @@ namespace Content.Server.DeviceLinking.Systems
data[DeviceNetworkConstants.LogicState] = SignalState.Low;
_signalSystem.InvokePort(uid, door.OutOpen, data);
}
else if (args.State == DoorState.Open
|| args.State == DoorState.Opening
|| args.State == DoorState.Closing
|| args.State == DoorState.Emagging)
else if (args.State is DoorState.Open or DoorState.Emagging)
{
data[DeviceNetworkConstants.LogicState] = SignalState.High;
_signalSystem.InvokePort(uid, door.OutOpen, data);