Fix CameraEntity#moveAbsolute(AdvancedPosition) to properly update head rotation and bounding box

This commit is contained in:
CrushedPixel
2015-07-30 11:26:31 +02:00
parent 8d8fa6a835
commit e0a0d9ef53

View File

@@ -160,8 +160,9 @@ public class CameraEntity extends EntityPlayer {
public void moveAbsolute(AdvancedPosition pos) {
this.moveAbsolute(pos.getX(), pos.getY(), pos.getZ());
rotationPitch = (float)pos.getPitch();
rotationYaw = (float)pos.getYaw();
rotationPitch = prevRotationPitch = (float)pos.getPitch();
rotationYaw = prevRotationYaw = (float)pos.getYaw();
updateBoundingBox();
}
public void moveAbsolute(double x, double y, double z) {