firelocks now check if the alarms they have are null or not before autoclosing
This commit is contained in:
parent
7fd510d252
commit
901670c2ea
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ namespace Content.Server.Doors.Systems
|
|||
// Make firelocks autoclose, but only if the last alarm type it
|
||||
// remembers was a danger. This is to prevent people from
|
||||
// flooding hallways with endless bad air/fire.
|
||||
if (_atmosAlarmable.TryGetHighestAlert(uid, out var alarm) && alarm != AtmosMonitorAlarmType.Danger)
|
||||
if (_atmosAlarmable.TryGetHighestAlert(uid, out var alarm) && alarm != AtmosMonitorAlarmType.Danger || alarm == null)
|
||||
args.Cancel();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue