Fixed flight, speed, strafe false positives near boats

This commit is contained in:
Rammelkast committed 2021-03-02 18:40:30 +01:00
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;