From 86064eae36aa89ddd2e0b0cfdb7f02cb5d037244 Mon Sep 17 00:00:00 2001 From: Gurkengewuerz Date: Thu, 28 Jul 2022 14:47:35 +0200 Subject: [PATCH] fix: drip more often because of lags --- .../java/de/mc8051/clientenhancements/client/Flying.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/mc8051/clientenhancements/client/Flying.java b/src/main/java/de/mc8051/clientenhancements/client/Flying.java index bbd5700..1b011dc 100644 --- a/src/main/java/de/mc8051/clientenhancements/client/Flying.java +++ b/src/main/java/de/mc8051/clientenhancements/client/Flying.java @@ -29,9 +29,10 @@ public void tick(MinecraftClient client) { player.setVelocity(new Vec3d( velocity.x, FALL_SPEED - velocity.y, velocity.z )); + //System.out.println("DRIP: " + toggle + " " + velocity.y); } - - if (toggle == 0 || velocity.y < FALL_SPEED) toggle = 40; + // We have to consider lags, thats why we do a drip every second + if (toggle == 0 || velocity.y < FALL_SPEED) toggle = 20; toggle--; } else if (switchedState) { switchedState = false;