Fixed #4994
This commit is contained in:
@@ -149,7 +149,7 @@ public class Pathfinder implements Runnable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Update a tile in the internal pathfinding grid.
|
/** 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){
|
public void updateTile(Tile tile){
|
||||||
if(net.client()) return;
|
if(net.client()) return;
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ public class Units{
|
|||||||
nearby(x, y, width, height, unit -> {
|
nearby(x, y, width, height, unit -> {
|
||||||
if(boolResult) return;
|
if(boolResult) return;
|
||||||
if((unit.isGrounded() && !unit.type.hovering) == ground){
|
if((unit.isGrounded() && !unit.type.hovering) == ground){
|
||||||
unit.hitbox(hitrect);
|
unit.hitboxTile(hitrect);
|
||||||
|
|
||||||
if(hitrect.overlaps(x, y, width, height)){
|
if(hitrect.overlaps(x, y, width, height)){
|
||||||
boolResult = true;
|
boolResult = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user