improve nofall speed
Some checks failed
/ Build BaseBand DSM & Broadway (push) Has been cancelled

This commit is contained in:
Daniella / Tove 2024-06-24 14:33:35 +02:00
parent 94b0fcd657
commit 0b5d5ec742
Signed by: TudbuT
GPG key ID: B3CF345217F202D3

View file

@ -34,7 +34,7 @@ public class NoFall extends Feature {
@Config("Disengage time")
@Description("Directly depends on how performant the server is. If it's always 20TPS, this can be 2, otherwise higher.")
@Range("2..10")
@Range("2..20")
@Gate(1)
public int disengageTime = 2;
@ -132,7 +132,7 @@ public class NoFall extends Feature {
mc.player.connection.sendPacket(new CPacketEntityAction(mc.player, CPacketEntityAction.Action.START_FALL_FLYING));
// send fake rotation
mc.player.connection.sendPacket(new CPacketPlayer.PositionRotation(mc.player.posX, mc.player.posY, mc.player.posZ, mc.player.rotationYaw, 0, false));
cancelElytraNT = disengageTime + 10;
cancelElytraNT = disengageTime;
return;
}