More public modules
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user