This commit is contained in:
Anuken
2021-03-25 13:51:13 -04:00
parent 1fc1efc410
commit 36aa9d5696
2 changed files with 2 additions and 2 deletions

View File

@@ -149,7 +149,7 @@ public class Pathfinder implements Runnable{
}
/** Update a tile in the internal pathfinding grid.
* Causes a complete pathfinding reclaculation. Main thread only. */
* Causes a complete pathfinding recalculation. Main thread only. */
public void updateTile(Tile tile){
if(net.client()) return;

View File

@@ -128,7 +128,7 @@ public class Units{
nearby(x, y, width, height, unit -> {
if(boolResult) return;
if((unit.isGrounded() && !unit.type.hovering) == ground){
unit.hitbox(hitrect);
unit.hitboxTile(hitrect);
if(hitrect.overlaps(x, y, width, height)){
boolResult = true;