fix gas tank UI (#7135)

This commit is contained in:
Leon Friedrich
2022-03-17 10:30:40 +13:00
committed by GitHub
parent 6109e3f6fa
commit 25cf0eac08
3 changed files with 11 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
using Content.Shared.Atmos.Components;
using Content.Shared.Atmos.Components;
using JetBrains.Annotations;
using Robust.Client.GameObjects;
using Robust.Shared.GameObjects;
@@ -38,7 +38,8 @@ namespace Content.Client.UserInterface.Atmos.GasTank
{
base.UpdateState(state);
_window?.UpdateState((GasTankBoundUserInterfaceState) state);
if (state is GasTankBoundUserInterfaceState cast)
_window?.UpdateState(cast);
}
protected override void Dispose(bool disposing)