This commit is contained in:
Anuken
2020-06-26 14:27:26 -04:00
parent eabc5c15c7
commit fdf7c88083
228 changed files with 1219 additions and 1163 deletions
+2 -2
View File
@@ -68,13 +68,13 @@ public class MobileInput extends InputHandler implements GestureListener{
/** Check and assign targets for a specific position. */
void checkTargets(float x, float y){
Unitc unit = Units.closestEnemy(player.team(), x, y, 20f, u -> !u.dead());
Unit unit = Units.closestEnemy(player.team(), x, y, 20f, u -> !u.dead);
if(unit != null){
player.miner().mineTile(null);
target = unit;
}else{
Tilec tile = world.entWorld(x, y);
Building tile = world.entWorld(x, y);
if(tile != null && player.team().isEnemy(tile.team())){
player.miner().mineTile(null);