Fixed NaN liquid efficiency

This commit is contained in:
Anuken
2022-07-17 19:12:57 -04:00
parent 1e7219f7d1
commit 26fbf4c71e
4 changed files with 11 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ public class MobileInput extends InputHandler implements GestureListener{
void checkTargets(float x, float y){
Unit unit = Units.closestEnemy(player.team(), x, y, 20f, u -> !u.dead);
if(unit != null){
if(unit != null && player.unit().type.canAttack){
player.unit().mineTile = null;
target = unit;
}else{