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) ); }