From e0a0d9ef53a0fa224259c263f4d49466c003cf9e Mon Sep 17 00:00:00 2001 From: CrushedPixel Date: Thu, 30 Jul 2015 11:26:31 +0200 Subject: [PATCH] Fix CameraEntity#moveAbsolute(AdvancedPosition) to properly update head rotation and bounding box --- .../eu/crushedpixel/replaymod/entities/CameraEntity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java b/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java index a0ac8c74..f618c18d 100755 --- a/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java +++ b/src/main/java/eu/crushedpixel/replaymod/entities/CameraEntity.java @@ -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) {