mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
18 lines
557 B
C#
18 lines
557 B
C#
using Content.Shared.Hands.Components;
|
|
|
|
namespace Content.Shared.Hands.EntitySystems;
|
|
|
|
public abstract partial class SharedHandsSystem
|
|
{
|
|
private void InitializeVirtual()
|
|
{
|
|
SubscribeLocalEvent<HandVirtualItemComponent, AfterAutoHandleStateEvent>(OnVirtualAfter);
|
|
}
|
|
|
|
private void OnVirtualAfter(EntityUid uid, HandVirtualItemComponent component, ref AfterAutoHandleStateEvent args)
|
|
{
|
|
// update hands GUI with new entity.
|
|
if (ContainerSystem.IsEntityInContainer(uid))
|
|
_items.VisualsChanged(uid);
|
|
}
|
|
}
|