mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-05 15:01:26 +01:00
Possible fix for the head yaw bug??
This commit is contained in:
parent
73fb5b3b62
commit
6f290d8ea7
@ -190,7 +190,8 @@ public class NMS {
|
||||
|
||||
public static void look(LivingEntity bukkitEntity, float yaw, float pitch) {
|
||||
EntityLiving handle = getHandle(bukkitEntity);
|
||||
handle.yaw = handle.az = yaw;
|
||||
handle.yaw = yaw;
|
||||
setHeadYaw(handle, yaw);
|
||||
handle.pitch = pitch;
|
||||
}
|
||||
|
||||
@ -253,6 +254,7 @@ public class NMS {
|
||||
|
||||
public static void setHeadYaw(EntityLiving handle, float yaw) {
|
||||
handle.az = yaw;
|
||||
handle.aA = yaw;
|
||||
}
|
||||
|
||||
public static void setLandSpeedModifier(EntityLiving handle, float speed) {
|
||||
|
Loading…
Reference in New Issue
Block a user