Fixed #3493 but for point defense turrets

This commit is contained in:
Anuken
2020-11-20 12:53:51 -05:00
parent 06921b53be
commit 522a7f4728
2 changed files with 0 additions and 4 deletions

View File

@@ -96,8 +96,6 @@ public class PointDefenseTurret extends ReloadTurret{
shootSound.at(x + Tmp.v1.x, y + Tmp.v1.y, Mathf.random(0.9f, 1.1f)); shootSound.at(x + Tmp.v1.x, y + Tmp.v1.y, Mathf.random(0.9f, 1.1f));
reload = 0; reload = 0;
} }
}else{
target = null;
} }
} }

View File

@@ -76,8 +76,6 @@ public class TractorBeamTurret extends BaseTurret{
target = Units.closestEnemy(team, x, y, range, u -> u.checkTarget(targetAir, targetGround)); target = Units.closestEnemy(team, x, y, range, u -> u.checkTarget(targetAir, targetGround));
} }
Log.info(target);
//consume coolant //consume coolant
if(target != null && acceptCoolant){ if(target != null && acceptCoolant){
float maxUsed = consumes.<ConsumeLiquidBase>get(ConsumeType.liquid).amount; float maxUsed = consumes.<ConsumeLiquidBase>get(ConsumeType.liquid).amount;