mirror of
https://github.com/wega-team/ss14-wega.git
synced 2026-02-14 19:30:01 +01:00
* Allow items spawned in the smart fridge to show up in the view * AAAAAAAAAAAAAAAAAA --------- Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
19 lines
495 B
C#
19 lines
495 B
C#
using Content.Shared.SmartFridge;
|
|
|
|
namespace Content.Client.SmartFridge;
|
|
|
|
public sealed class SmartFridgeSystem : SharedSmartFridgeSystem
|
|
{
|
|
[Dependency] private readonly 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();
|
|
}
|
|
}
|