From a96b13f8c7d1a90894b7a95af1420fb2bec957de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Mon, 10 Aug 2020 16:21:25 +0200 Subject: [PATCH] Fix clearatmos command not working as intended. --- Content.Server/Atmos/AtmosCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Server/Atmos/AtmosCommands.cs b/Content.Server/Atmos/AtmosCommands.cs index c38f586c86..29525acaae 100644 --- a/Content.Server/Atmos/AtmosCommands.cs +++ b/Content.Server/Atmos/AtmosCommands.cs @@ -302,7 +302,7 @@ namespace Content.Server.Atmos var moles = 0f; foreach (var tile in gam) { - if (tile.Air.Immutable) continue; + if (tile.Air == null || tile.Air.Immutable) continue; tiles++; moles += tile.Air.TotalMoles; tile.Air.RemoveRatio(1f);