mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
* IoC source gen compatibility Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter. * Missed a spot
18 lines
494 B
C#
18 lines
494 B
C#
using Content.Shared.SmartFridge;
|
|
|
|
namespace Content.Client.SmartFridge;
|
|
|
|
public sealed partial class SmartFridgeSystem : SharedSmartFridgeSystem
|
|
{
|
|
[Dependency] private SharedUserInterfaceSystem _uiSystem = default!;
|
|
|
|
protected override void UpdateUI(Entity<SmartFridgeComponent> ent)
|
|
{
|
|
base.UpdateUI(ent);
|
|
|
|
if (!_uiSystem.TryGetOpenUi<SmartFridgeBoundUserInterface>(ent.Owner, SmartFridgeUiKey.Key, out var bui))
|
|
return;
|
|
|
|
bui.Refresh();
|
|
}
|
|
}
|