More public modules

This commit is contained in:
Anuken
2018-10-08 16:09:31 -04:00
parent 9566155bdb
commit f7bd376499
9 changed files with 19 additions and 39 deletions
@@ -159,7 +159,7 @@ public class BlockIndexer{
* Find the closest ore block relative to a position.
*/
public Tile findClosestOre(float xp, float yp, Item item){
Tile tile = Geometry.findClosest(xp, yp, world.indexer().getOrePositions(item));
Tile tile = Geometry.findClosest(xp, yp, world.indexer.getOrePositions(item));
if(tile == null) return null;
@@ -111,7 +111,7 @@ public class Pathfinder{
path.lastSearchTime = TimeUtils.millis();
Array<Tile> set = world.indexer().getEnemy(team, BlockFlag.target);
Array<Tile> set = world.indexer.getEnemy(team, BlockFlag.target);
for(Tile other : set){
path.weights[other.x][other.y] = 0;
path.searches[other.x][other.y] = path.search;