Remove unused alteration

This commit is contained in:
Patrick 'Quezler' Mounier
2020-01-01 20:54:29 +01:00
parent 549efa472a
commit 5c31009495

View File

@@ -68,22 +68,6 @@ public class Units{
return boolResult;
}
/** Returns whether there are any entities on this tile. */
public static void allEntities(Tile tile, Cons<Unit> cons){
float size = tile.block().size * tilesize;
allEntities(tile.drawx() - size/2f, tile.drawy() - size/2f, size, size, cons);
}
public static void allEntities(float x, float y, float width, float height, Cons<Unit> cons){
nearby(x, y, width, height, unit -> {
if(!unit.isFlying()){
unit.hitbox(hitrect);
if(hitrect.overlaps(x, y, width, height)) cons.get(unit);
}
});
}
/** Returns the neareset damaged tile. */
public static TileEntity findDamagedTile(Team team, float x, float y){
Tile tile = Geometry.findClosest(x, y, indexer.getDamaged(team));