fix a nofall bug where you sometimes just get "random" fall dmg in Elytra mode lol
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m12s

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

View file

@ -63,7 +63,7 @@ public class NoFall extends Feature {
}
// we check the fall distance so we dont interfere with things that require server-side onground, **LAMBDA**!
if(mode == Mode.NeverTouch || ((mode == Mode.Elytra || mode == Mode.AlwaysTouch) && lastFallDist > 2)) {
if(mode == Mode.NeverTouch || (mode == Mode.AlwaysTouch && lastFallDist > 2)) {
try {
FieldFinder.findUnmarked(CPacketPlayer.class, boolean.class, 0).set(packet, mode == Mode.AlwaysTouch);
} catch (IllegalAccessException e) {