Skip to content

Commit

Permalink
fix: drip more often because of lags
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurkengewuerz committed Jul 28, 2022
1 parent a058009 commit 86064ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/de/mc8051/clientenhancements/client/Flying.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86064ea

Please sign in to comment.