Fixed override issue

This commit is contained in:
Anuken
2022-04-21 11:10:36 -04:00
parent e5f8eb3a30
commit bfdf07d0eb
2 changed files with 6 additions and 5 deletions

View File

@@ -133,9 +133,10 @@ public class Pathfinder implements Runnable{
break;
}
}
int arr = other.array();
//the other tile is no longer near solid, remove the solid bit
if(!otherNearSolid && tiles.length > other.array()){
tiles[other.array()] &= ~(PathTile.bitMaskNearSolid);
if(!otherNearSolid && tiles.length > arr){
tiles[arr] &= ~(PathTile.bitMaskNearSolid);
}
}
}