Put bunnyhopdelay back in (...).

This commit is contained in:
asofold 2012-09-27 16:51:42 +02:00
parent bad6ee30a1
commit 791dca6048
3 changed files with 19 additions and 19 deletions

View File

@ -89,17 +89,17 @@ public class CreativeFly extends Check {
// Finally, determine how far the player went beyond the set limits. // Finally, determine how far the player went beyond the set limits.
double resultH = Math.max(0.0D, hDistance - data.horizontalFreedom - limitH); double resultH = Math.max(0.0D, hDistance - data.horizontalFreedom - limitH);
// final boolean sprinting = player.isSprinting() && player.getFoodLevel() > 5; final boolean sprinting = player.isSprinting() && player.getFoodLevel() > 5;
// data.bunnyhopDelay--; data.bunnyhopDelay--;
// if (resultH > 0 && sprinting) if (resultH > 0 && sprinting)
// // Try to treat it as a the "bunnyhop" problem. The bunnyhop problem is that landing and immediately jumping // Try to treat it as a the "bunnyhop" problem. The bunnyhop problem is that landing and immediately jumping
// // again leads to a player moving almost twice as far in that step. // again leads to a player moving almost twice as far in that step.
// if (data.bunnyhopDelay <= 0 && resultH < 0.4D) { if (data.bunnyhopDelay <= 0 && resultH < 0.4D) {
// data.bunnyhopDelay = 9; data.bunnyhopDelay = 9;
// resultH = 0D; resultH = 0D;
// } }
resultH *= 100D; resultH *= 100D;

View File

@ -67,7 +67,7 @@ public class MovingData extends ACheckData {
public double survivalFlyVL = 0D; public double survivalFlyVL = 0D;
// Data shared between the fly checks. // Data shared between the fly checks.
// public int bunnyhopDelay; public int bunnyhopDelay;
public double horizontalBuffer; public double horizontalBuffer;
public double horizontalFreedom; public double horizontalFreedom;
public double horizontalVelocityCounter; public double horizontalVelocityCounter;
@ -113,7 +113,7 @@ public class MovingData extends ACheckData {
* Clear the data of the fly checks. * Clear the data of the fly checks.
*/ */
public void clearFlyData() { public void clearFlyData() {
// bunnyhopDelay = 0; bunnyhopDelay = 0;
noFallFallDistance = 0D; noFallFallDistance = 0D;
survivalFlyJumpPhase = 0; survivalFlyJumpPhase = 0;
setBack = null; setBack = null;

View File

@ -154,15 +154,15 @@ public class SurvivalFly extends Check {
} }
} }
// data.bunnyhopDelay--; data.bunnyhopDelay--;
// // Did he go too far? // Did he go too far?
// if (hDistanceAboveLimit > 0 && sprinting) if (hDistanceAboveLimit > 0 && sprinting)
// // Try to treat it as a the "bunnyhop" problem. // Try to treat it as a the "bunnyhop" problem.
// if (data.bunnyhopDelay <= 0 && hDistanceAboveLimit > 0.05D && hDistanceAboveLimit < 0.28D) { if (data.bunnyhopDelay <= 0 && hDistanceAboveLimit > 0.05D && hDistanceAboveLimit < 0.28D) {
// data.bunnyhopDelay = 9; data.bunnyhopDelay = 9;
// hDistanceAboveLimit = 0D; hDistanceAboveLimit = 0D;
// } }
if (hDistanceAboveLimit > 0D) { if (hDistanceAboveLimit > 0D) {
// Try to consume the "buffer". // Try to consume the "buffer".