Skip to content

Commit

Permalink
patch head rotation nonsense for 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 16, 2018
1 parent 321d609 commit 16bcb5a
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -531,7 +531,7 @@ else if (entity instanceof LivingEntity) {
@Override
public float getBaseYaw(Entity entity) {
net.minecraft.server.v1_13_R2.Entity handle = ((CraftEntity) entity).getHandle();
return ((EntityLiving) handle).aO;
return ((EntityLiving) handle).aR;
}

@Override
Expand All @@ -547,11 +547,11 @@ public void look(Entity entity, float yaw, float pitch) {
while (yaw >= 180.0F) {
yaw -= 360.0F;
}
livingHandle.aO = yaw;
livingHandle.aR = yaw;
if (!(handle instanceof EntityHuman)) {
livingHandle.aN = yaw;
livingHandle.aQ = yaw;
}
livingHandle.aP = yaw;
livingHandle.aS = yaw;
}
handle.pitch = pitch;
}
Expand Down

0 comments on commit 16bcb5a

Please sign in to comment.