Fix inhand visuals getting stuck (#44405)

fix the hands
This commit is contained in:
Jessica M 2026-06-29 04:35:05 +00:00 • committed by GitHub
parent 898e1abe4b
commit 8b228db4cc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -114,12 +114,12 @@ public abstract partial class SharedHandsSystem
TryDrop(ent, handName, null, false);
if (!ent.Comp.Hands.Remove(handName))
return;
if (ContainerSystem.TryGetContainer(ent, handName, out var container))
ContainerSystem.ShutdownContainer(container);
if (!ent.Comp.Hands.Remove(handName))
return;
ent.Comp.SortedHands.Remove(handName);
if (ent.Comp.ActiveHandId == handName)
TrySetActiveHand(ent, ent.Comp.SortedHands.FirstOrDefault());