Merge remote-tracking branch 'origin/master'
# Conflicts: # core/src/io/anuke/mindustry/core/Renderer.java
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;
|
||||
|
||||
@@ -156,7 +156,7 @@ public class WaveSpawner{
|
||||
for(int y = quady * quadsize; y < world.height() && y < (quady + 1) * quadsize; y++){
|
||||
Tile tile = world.tile(x, y);
|
||||
|
||||
if(tile == null || tile.solid() || world.pathfinder().getValueforTeam(Team.red, x, y) == Float.MAX_VALUE){
|
||||
if(tile == null || tile.solid() || world.pathfinder.getValueforTeam(Team.red, x, y) == Float.MAX_VALUE){
|
||||
setQuad(quadx, quady, false);
|
||||
break outer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user