[jetpack] move back up after nofly bypass

This commit is contained in:
c0repwn3r 2022-12-03 21:26:56 -05:00
parent 67ef576d81
commit 459375083e
Signed by: core
GPG Key ID: FDBF740DADDCEECF
1 changed files with 4 additions and 1 deletions

View File

@ -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);