Fix Airlock Power not restoring after cutting the wire (#2015)
This commit is contained in:
@@ -306,6 +306,7 @@ namespace Content.Server.GameObjects.Components.Doors
|
|||||||
case Wires.BackupPower:
|
case Wires.BackupPower:
|
||||||
PowerWiresPulsed = true;
|
PowerWiresPulsed = true;
|
||||||
_powerWiresPulsedTimerCancel.Cancel();
|
_powerWiresPulsedTimerCancel.Cancel();
|
||||||
|
_powerWiresPulsedTimerCancel = new CancellationTokenSource();
|
||||||
Timer.Spawn(PowerWiresTimeout,
|
Timer.Spawn(PowerWiresTimeout,
|
||||||
() => PowerWiresPulsed = false,
|
() => PowerWiresPulsed = false,
|
||||||
_powerWiresPulsedTimerCancel.Token);
|
_powerWiresPulsedTimerCancel.Token);
|
||||||
|
|||||||
Reference in New Issue
Block a user