mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-15 03:31:30 +01:00
21 lines
560 B
C#
21 lines
560 B
C#
using Content.Shared.Hands.Components;
|
|
using Content.Shared.Inventory.Events;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Shared.Hands;
|
|
|
|
public abstract class SharedHandVirtualItemSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<HandVirtualItemComponent, BeingEquippedAttemptEvent>(OnBeingEquippedAttempt);
|
|
}
|
|
|
|
private void OnBeingEquippedAttempt(EntityUid uid, HandVirtualItemComponent component, BeingEquippedAttemptEvent args)
|
|
{
|
|
args.Cancel();
|
|
}
|
|
}
|