Anchor Point Helper Eye - Item Staff Fixes

This commit is contained in:
Kam committed 2026-02-26 02:59:40 -05:00
1 parent 8b1ef36dc5
commit 2f1e67660d
2 files changed
+9 -2

No files matched your search

@@ -75,7 +75,9 @@ public class AnchorPointHelper {
float anchorZ = anchorData.anchorOffsetZ;
double x = entity.posX;
double y = entity.posY + getClientPlayerYCorrection(entity);
// EYE uses getEyeHeight() which already gives the correct offset from posY,
// so the client player correction would double-subtract and place it at feet level
double y = entity.posY + (anchor == AnchorPoint.EYE ? 0 : getClientPlayerYCorrection(entity));
double z = entity.posZ;
float headYaw = (float) Math.toRadians(entity.rotationYawHead);