diff --git a/src/main/java/ac/grim/grimac/utils/nmsutil/Collisions.java b/src/main/java/ac/grim/grimac/utils/nmsutil/Collisions.java index aa1c69ffa0..ef85a67b7f 100644 --- a/src/main/java/ac/grim/grimac/utils/nmsutil/Collisions.java +++ b/src/main/java/ac/grim/grimac/utils/nmsutil/Collisions.java @@ -712,7 +712,7 @@ public static boolean hasMaterial(GrimPlayer player, SimpleCollisionBox checkBox } // Thanks Tuinity - public static void forEachCollisionBoxes(GrimPlayer player, SimpleCollisionBox checkBox, Consumer searchingFor) { + public static void forEachCollisionBox(GrimPlayer player, SimpleCollisionBox checkBox, Consumer searchingFor) { int minBlockX = (int) Math.floor(checkBox.minX - COLLISION_EPSILON) - 1; int maxBlockX = (int) Math.floor(checkBox.maxX + COLLISION_EPSILON) + 1; int minBlockY = (int) Math.floor(checkBox.minY - COLLISION_EPSILON) - 1; diff --git a/src/main/java/ac/grim/grimac/utils/nmsutil/MainSupportingBlockPosFinder.java b/src/main/java/ac/grim/grimac/utils/nmsutil/MainSupportingBlockPosFinder.java index e15aca466e..cfc664315e 100644 --- a/src/main/java/ac/grim/grimac/utils/nmsutil/MainSupportingBlockPosFinder.java +++ b/src/main/java/ac/grim/grimac/utils/nmsutil/MainSupportingBlockPosFinder.java @@ -40,7 +40,7 @@ private Optional findSupportingBlock(GrimPlayer player, SimpleCollisio AtomicReference bestBlockPos = new AtomicReference<>(); AtomicDouble blockPosDistance = new AtomicDouble(Double.MAX_VALUE); - Collisions.forEachCollisionBoxes(player, searchBox, (pos) -> { + Collisions.forEachCollisionBox(player, searchBox, (pos) -> { Vector3i blockPos = pos.toVector3i(); Vector3d blockPosAsVector3d = new Vector3d(blockPos.getX() + 0.5, blockPos.getY() + 0.5, blockPos.getZ() + 0.5); double distance = playerPos.distanceSquared(blockPosAsVector3d);