Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@

if (this.onGround && this.abilities.isFlying && !this.mc.playerController.isSpectatorMode())
{
@@ -1008,12 +1205,58 @@
@@ -1008,12 +1205,66 @@
return super.removeActivePotionEffect(potioneffectin);
}

Expand Down Expand Up @@ -425,14 +425,22 @@
+
+ public double getRoomYOffsetFromPos() {
+ double oy = 0;
+ //Adjust room origin to account for pose.
+ if(this.getPose() == Pose.FALL_FLYING || this.getPose() == Pose.SPIN_ATTACK)
+ oy = 1.62 - 0.4;
+ //Adjust room origin to account for pose.
+ if(this.getPose() == Pose.FALL_FLYING ||
+ this.getPose() == Pose.SPIN_ATTACK ||
+ this.getPose() == Pose.SWIMMING)
+ oy = 1.62 - 0.4;
+ else if (this.getPose() == Pose.CROUCHING &&
+ !mc.vrSettings.realisticSneakEnabled)
+ {
+ oy = 1.62 - 1.27;
+ }
+
+ return -oy;
}

public boolean isAutoJumpEnabled()
@@ -1031,13 +1274,17 @@
@@ -1031,13 +1282,17 @@
float f = this.getAIMoveSpeed();
float f1 = (float)vec3d2.lengthSquared();

Expand All @@ -452,7 +460,7 @@
vec3d2 = new Vec3d((double)(f2 * f5 - f3 * f4), vec3d2.y, (double)(f3 * f5 + f2 * f4));
f1 = (float)vec3d2.lengthSquared();

@@ -1220,4 +1467,406 @@
@@ -1220,4 +1475,406 @@
return this.eyesInWaterPlayer;
}
}
Expand Down