Gas tank minor opts (#7424)

This commit is contained in:
mirrorcult
2022-04-04 22:08:41 -07:00
committed by GitHub
parent 0123dc4c82
commit d1c980fe41
2 changed files with 16 additions and 11 deletions

View File

@@ -64,8 +64,12 @@ namespace Content.Server.Atmos.EntitySystems
foreach (var gasTank in EntityManager.EntityQuery<GasTankComponent>())
{
_atmosphereSystem.React(gasTank.Air, gasTank);
gasTank.CheckStatus();
gasTank.UpdateUserInterface();
gasTank.CheckStatus(_atmosphereSystem);
if (gasTank.UserInterface != null && gasTank.UserInterface.SubscribedSessions.Count > 0)
{
gasTank.UpdateUserInterface();
}
}
}
}