From d2d103fdd04f5ad2cced9080ac31aac57044a226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Aguilera=20Puerto?= Date: Thu, 6 Aug 2020 15:37:39 +0200 Subject: [PATCH] Fix addgas bug where you couldn't input the gas name instead of the Id --- Content.Server/Atmos/AtmosCommands.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Content.Server/Atmos/AtmosCommands.cs b/Content.Server/Atmos/AtmosCommands.cs index e030b11ecd..96a9580169 100644 --- a/Content.Server/Atmos/AtmosCommands.cs +++ b/Content.Server/Atmos/AtmosCommands.cs @@ -81,6 +81,11 @@ namespace Content.Server.Atmos || !(int.TryParse(args[3], out gasId) || Enum.TryParse(args[3], out gas)) || !float.TryParse(args[4], out var moles)) return; + if (gas != (Gas) (-1)) + { + gasId = (int)gas; + } + var gridId = new GridId(id); var mapMan = IoCManager.Resolve();