Fix CameraEntity#moveAbsolute(AdvancedPosition) to properly update head rotation and bounding box
This commit is contained in:
@@ -160,8 +160,9 @@ public class CameraEntity extends EntityPlayer {
|
|||||||
|
|
||||||
public void moveAbsolute(AdvancedPosition pos) {
|
public void moveAbsolute(AdvancedPosition pos) {
|
||||||
this.moveAbsolute(pos.getX(), pos.getY(), pos.getZ());
|
this.moveAbsolute(pos.getX(), pos.getY(), pos.getZ());
|
||||||
rotationPitch = (float)pos.getPitch();
|
rotationPitch = prevRotationPitch = (float)pos.getPitch();
|
||||||
rotationYaw = (float)pos.getYaw();
|
rotationYaw = prevRotationYaw = (float)pos.getYaw();
|
||||||
|
updateBoundingBox();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void moveAbsolute(double x, double y, double z) {
|
public void moveAbsolute(double x, double y, double z) {
|
||||||
|
|||||||
Reference in New Issue
Block a user