using Content.Shared.Atmos.Components; using Content.Shared.Atmos.EntitySystems; namespace Content.Client.Atmos.EntitySystems; public sealed class GasTankSystem : SharedGasTankSystem { public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnGasTankState); } private void OnGasTankState(Entity ent, ref AfterAutoHandleStateEvent args) { if (UI.TryGetOpenUi(ent.Owner, SharedGasTankUiKey.Key, out var bui)) { bui.Update(); } } public override void UpdateUserInterface(Entity ent) { if (UI.TryGetOpenUi(ent.Owner, SharedGasTankUiKey.Key, out var bui)) { bui.Update(); } } }