Skip to content

Commit

Permalink
Update SpeedE.java
Browse files Browse the repository at this point in the history
  • Loading branch information
funkemunky committed Aug 14, 2022
1 parent 8e0b6c4 commit 9794196
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import dev.brighten.anticheat.check.api.CheckInfo;
import dev.brighten.anticheat.check.api.Packet;
import dev.brighten.anticheat.utils.MiscUtils;
import dev.brighten.api.check.CancelType;
import dev.brighten.api.check.DevStage;
import org.bukkit.Material;
import org.bukkit.block.Block;
Expand Down Expand Up @@ -204,6 +205,8 @@ public void onFlying(WrappedInFlyingPacket packet) {
buffer = Math.min(3.5f, buffer); //Ensuring we don't have a run-away buffer
vl++;
flag("d=%.4f pm=%.3f dx=%.3f", smallestDelta, pmotion, data.playerInfo.deltaXZ);
} else if(buffer > 1) {
cancelAction(CancelType.MOVEMENT);
}
} else if (buffer > 0) buffer -= 0.1f;

Expand Down

0 comments on commit 9794196

Please sign in to comment.