From c7b486f0a9f1e54b970ac93f46589c0573b0efb2 Mon Sep 17 00:00:00 2001 From: Tofaa <82680183+Tofaa2@users.noreply.github.com> Date: Thu, 22 Feb 2024 12:40:26 +0400 Subject: [PATCH] fix rotatehead --- .idea/workspace.xml | 6 +++--- .../main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 908c560..72223c6 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,9 +5,7 @@ - - - + diff --git a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java index 66da417..dfcab76 100644 --- a/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java +++ b/api/src/main/java/me/tofaa/entitylib/wrapper/WrapperEntity.java @@ -300,8 +300,9 @@ public boolean hasVelocity() { } public void rotateHead(float yaw, float pitch) { - sendPacketToViewers( - new WrapperPlayServerEntityRotation(entityId, yaw, pitch, onGround) + sendPacketsToViewers( + new WrapperPlayServerEntityRotation(entityId, yaw, pitch, onGround), + new WrapperPlayServerEntityHeadLook(entityId, yaw) ); }