mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 22:14:49 +00:00
Fixed flight, speed, strafe false positives near boats
This commit is contained in:
1 parent
0d50bc3b52
commit
45712a8f62
4 files changed
+4
-4
No files matched your search
@@ -128,7 +128,7 @@ public final class Utilities {
|
||||
public static boolean couldBeOnBoat(Player player, double range, boolean checkY) {
|
||||
for (Entity entity : player.getNearbyEntities(range, range, range)) {
|
||||
if (entity instanceof Boat) {
|
||||
if (((Boat) entity).getLocation().getY() < player.getLocation().getY() + 0.25) {
|
||||
if (((Boat) entity).getLocation().getY() < player.getLocation().getY() + 0.35) {
|
||||
return true;
|
||||
} else if (!checkY) {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user