Skip to content

Commit

Permalink
Fixing liquid false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
funkemunky committed Sep 8, 2020
1 parent 09b946c commit 346f607
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public void onFlying(WrappedInFlyingPacket packet) {
double ratio = (data.playerInfo.deltaXZ - ldxz) / moveFactor * 100;

if (ratio > 100.8 && data.playerInfo.lastBrokenBlock.hasPassed(data.lagInfo.transPing + 1)
&& data.playerInfo.liquidTimer.hasPassed(2)
&& !data.playerInfo.generalCancel && data.playerInfo.lastVelocity.hasPassed(2)) {
buffer+= ratio > 1000 ? 3 : 1;

Expand Down

0 comments on commit 346f607

Please sign in to comment.