More hand fixes (#12502)

This commit is contained in:
Leon Friedrich
2022-11-10 14:04:47 +13:00
committed by GitHub
parent 672ece25d0
commit c60c8e6138
3 changed files with 22 additions and 19 deletions

View File

@@ -245,12 +245,7 @@ namespace Content.Client.Hands.Systems
public void UIHandAltActivateItem(string handName)
{
if (!TryGetPlayerHands(out var hands)
|| !hands.Hands.TryGetValue(handName, out var hand)
|| hand.HeldEntity is not { Valid: true } entity)
return;
EntityManager.RaisePredictiveEvent(new RequestHandAltInteractEvent(entity));
RaisePredictiveEvent(new RequestHandAltInteractEvent(handName));
}
#region visuals