Fix unintentional inventory relayed event handling (#10934)
* Add InventoryRelayedEvent<TEvent> * implement relays * typos * a
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Content.Shared.IdentityManagement.Components;
|
||||
using Content.Shared.IdentityManagement.Components;
|
||||
using Content.Shared.Inventory;
|
||||
using Robust.Shared.Containers;
|
||||
|
||||
namespace Content.Shared.IdentityManagement;
|
||||
@@ -14,6 +15,7 @@ public abstract class SharedIdentitySystem : EntitySystem
|
||||
|
||||
SubscribeLocalEvent<IdentityComponent, ComponentInit>(OnComponentInit);
|
||||
SubscribeLocalEvent<IdentityBlockerComponent, SeeIdentityAttemptEvent>(OnSeeIdentity);
|
||||
SubscribeLocalEvent<IdentityBlockerComponent, InventoryRelayedEvent<SeeIdentityAttemptEvent>>((e, c, ev) => OnSeeIdentity(e, c, ev.Args));
|
||||
}
|
||||
|
||||
private void OnSeeIdentity(EntityUid uid, IdentityBlockerComponent component, SeeIdentityAttemptEvent args)
|
||||
|
||||
Reference in New Issue
Block a user