improve elytra mode in nofall
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m13s

This commit is contained in:
Daniella / Tove 2024-06-24 14:47:00 +02:00
parent 3caf43f642
commit b8692ab2c1
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -102,7 +102,7 @@ public class NoFall extends Feature {
ranThisFall = false;
lastOnGround = mc.player.onGround;
lastFallDist = mc.player.fallDistance;
if(mode == Mode.Elytra) {
if(mode == Mode.Elytra && !mc.player.isElytraFlying()) {
int i;
for (i = 0; i < 256; i++) {
BlockPos down = mc.player.getPosition().down(i + 1);
@ -113,7 +113,7 @@ public class NoFall extends Feature {
ranThisFall = false;
mc.player.fallDistance = 0;
}
if(!ranThisFall && mc.player.fallDistance > 3 && i <= mc.player.fallDistance / 4) {
if(!ranThisFall && mc.player.fallDistance > 3 && i <= mc.player.fallDistance / 3) {
engageElytra();
return;
}