mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 09:39:05 +00:00
Anchor Point Helper Eye - Item Staff Fixes
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user