Hold items at the middle of a slim arm

A player with a slim skin held items at the wide arm's hand, half a pixel off the 3-pixel arm. PlayerModel.translateToHand shifts the arm by 0.5 toward the hand before the item's offset, as SkeletonModel does by 1.
This commit is contained in:
Kacpherek committed 2026-10-28 07:24:11 +01:00
1 parent e1bc2cbea3
commit 99008baad9
1 file changed
+4
+4
View File
@@ -1411,8 +1411,12 @@ fn hand_base(
| Species::WitherSkeleton
);
let arm = if left { "left_arm" } else { "right_arm" };
// `SkeletonModel.translateToHand` shifts the arm by 1, `PlayerModel.translateToHand`
// by 0.5 for slim arms: the hand is the middle of the arm.
let offset = if skeleton {
if left { -1.0 } else { 1.0 }
} else if avatar(m) && m.slim {
if left { -0.5 } else { 0.5 }
} else {
0.0
};