Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Vector> pastLocation = data.entityPastLocations.getEstimatedLocation(data.ping, 150).stream().map(CustomLocation::toVector).collect(Collectors.toList());
- float distance = (float) pastLocation.stream().mapToDouble(vec -> vec.clone().setY(0).distance(origin.toVector().clone().setY(0)) - 0.3f).min().orElse(0);
- if(distance > 3.1f) {
- if(data.reachThreshold++ > 10) {
- flag(data.player, "distance=" + distance);
- }
- } else data.reachThreshold-= data.reachThreshold > 0 ? 1 : 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement