Maybe fix hand test failures (#21157)

This commit is contained in:
Leon Friedrich
2023-10-22 16:55:10 +11:00
committed by GitHub
parent e3eaba1ebb
commit fbf4333a03
3 changed files with 5 additions and 3 deletions

View File

@@ -69,9 +69,9 @@ public abstract partial class SharedHandsSystem
if (!handsComp.Hands.Remove(handName, out var hand))
return;
handsComp.SortedHands.Remove(hand.Name);
TryDrop(uid, hand, null, false, true, handsComp);
hand.Container?.Shutdown();
handsComp.SortedHands.Remove(hand.Name);
if (handsComp.ActiveHand == hand)
TrySetActiveHand(uid, handsComp.SortedHands.FirstOrDefault(), handsComp);