mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-30 16:17:27 +00: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
503 B
C#
19 lines
503 B
C#
using Content.Shared._DV.SmartFridge;
|
|
|
|
namespace Content.Client._DV.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();
|
|
}
|
|
}
|