[jetpack] move back up after nofly bypass
This commit is contained in:
parent
67ef576d81
commit
459375083e
|
@ -87,9 +87,12 @@ public class Jetpack implements Module {
|
|||
|
||||
Vec3d velocity = client.player.getVelocity();
|
||||
|
||||
if (vanillaBypassTickCounter < 0) {
|
||||
if (vanillaBypassTickCounter < -1) {
|
||||
client.player.setVelocity(new Vec3d(velocity.getX(), -0.04, velocity.getZ()));
|
||||
return;
|
||||
} else if (vanillaBypassTickCounter == -1) {
|
||||
client.player.setVelocity(new Vec3d(velocity.getX(), 0.04 * (vanillaBypassResetTimeout - 1), velocity.getZ()));
|
||||
return;
|
||||
}
|
||||
|
||||
Vec3d newVel = new Vec3d(0, 0, 0);
|
||||
|
|
Loading…
Reference in New Issue