makes monitoralerttypes actually nullable

This commit is contained in:
vulppine
2022-08-22 12:06:30 -07:00
parent d774741121
commit a5cf4f9578
2 changed files with 2 additions and 2 deletions

View File

@@ -83,7 +83,7 @@ namespace Content.Server.Atmos.Monitor.Systems
return;
}
if (args.Data.TryGetValue(AlertTypes, out HashSet<AtmosMonitorThresholdType>? types))
if (args.Data.TryGetValue(AlertTypes, out HashSet<AtmosMonitorThresholdType>? types) && component.MonitorAlertTypes != null)
{
isValid = types.Any(type => component.MonitorAlertTypes.Contains(type));