From cc41f0cd9ec968bc9283a953ed7ae02c9e79b318 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Fri, 2 Mar 2018 10:38:10 +0200 Subject: [PATCH] Fixed items held in left hand taking the sprite depth from the left arm instead of the hand --- Barotrauma/BarotraumaClient/Source/Items/Item.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaClient/Source/Items/Item.cs b/Barotrauma/BarotraumaClient/Source/Items/Item.cs index 2fb00ca42..e5b1a5e2e 100644 --- a/Barotrauma/BarotraumaClient/Source/Items/Item.cs +++ b/Barotrauma/BarotraumaClient/Source/Items/Item.cs @@ -108,7 +108,7 @@ namespace Barotrauma } else if (holdable.Picker.SelectedItems[1] == this) { - Limb holdLimb = holdable.Picker.AnimController.GetLimb(LimbType.LeftArm); + Limb holdLimb = holdable.Picker.AnimController.GetLimb(LimbType.LeftHand); depth = holdLimb.sprite.Depth - 0.000001f; foreach (WearableSprite wearableSprite in holdLimb.WearingItems) {