From 268b2602b3c0e93391d957e10c37d33bf968d821 Mon Sep 17 00:00:00 2001 From: Bingo Johnson <83136974+BingoJohnson@users.noreply.github.com> Date: Tue, 7 Dec 2021 21:49:19 +0000 Subject: [PATCH] Critical and urgent change to atmos. Extensive and comprehensive refactor spanning over 104 lines, improving performance and cleaning up the code. --- .../Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs index b848769875..dd0b0ee910 100644 --- a/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs +++ b/Content.Server/Atmos/Piping/Unary/EntitySystems/GasVentPumpSystem.cs @@ -27,7 +27,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems private void OnGasVentPumpUpdated(EntityUid uid, GasVentPumpComponent vent, AtmosDeviceUpdateEvent args) { - var appearance = IoCManager.Resolve().GetComponentOrNull(vent.Owner); + var appearance = EntityManager.GetComponentOrNull(vent.Owner); //Bingo waz here if (vent.Welded) { @@ -43,7 +43,7 @@ namespace Content.Server.Atmos.Piping.Unary.EntitySystems return; } - var environment = _atmosphereSystem.GetTileMixture(IoCManager.Resolve().GetComponent(vent.Owner).Coordinates, true); + var environment = _atmosphereSystem.GetTileMixture(EntityManager.GetComponent(vent.Owner).Coordinates, true); // We're in an air-blocked tile... Do nothing. if (environment == null)