Remove some erroneous compadd subs (#19576)

This commit is contained in:
metalgearsloth
2023-08-27 16:08:29 +10:00
committed by GitHub
parent b311bf3741
commit d40f478fc6
3 changed files with 12 additions and 15 deletions

View File

@@ -47,8 +47,8 @@ namespace Content.Client.Hands.Systems
SubscribeLocalEvent<HandsComponent, PlayerAttachedEvent>(HandlePlayerAttached);
SubscribeLocalEvent<HandsComponent, PlayerDetachedEvent>(HandlePlayerDetached);
SubscribeLocalEvent<HandsComponent, ComponentAdd>(HandleCompAdd);
SubscribeLocalEvent<HandsComponent, ComponentRemove>(HandleCompRemove);
SubscribeLocalEvent<HandsComponent, ComponentStartup>(OnHandsStartup);
SubscribeLocalEvent<HandsComponent, ComponentShutdown>(OnHandsShutdown);
SubscribeLocalEvent<HandsComponent, ComponentHandleState>(HandleComponentState);
SubscribeLocalEvent<HandsComponent, VisualsChangedEvent>(OnVisualsChanged);
@@ -399,13 +399,13 @@ namespace Content.Client.Hands.Systems
OnPlayerHandsRemoved?.Invoke();
}
private void HandleCompAdd(EntityUid uid, HandsComponent component, ComponentAdd args)
private void OnHandsStartup(EntityUid uid, HandsComponent component, ComponentStartup args)
{
if (_playerManager.LocalPlayer?.ControlledEntity == uid)
OnPlayerHandsAdded?.Invoke(component);
}
private void HandleCompRemove(EntityUid uid, HandsComponent component, ComponentRemove args)
private void OnHandsShutdown(EntityUid uid, HandsComponent component, ComponentShutdown args)
{
if (_playerManager.LocalPlayer?.ControlledEntity == uid)
OnPlayerHandsRemoved?.Invoke();