ParticleEffect#sizeInterp / Log usable RAM

This commit is contained in:
Anuken
2021-09-07 22:32:27 -04:00
parent 8adefb7b72
commit dd7062f0f7
3 changed files with 11 additions and 6 deletions

View File

@@ -273,6 +273,7 @@ public class Turret extends ReloadTurret{
}
if(hasAmmo()){
if(Float.isNaN(reload)) rotation = 0;
if(timer(timerTarget, targetInterval)){
findTarget();
@@ -289,9 +290,7 @@ public class Turret extends ReloadTurret{
}else{ //default AI behavior
targetPosition(target);
if(Float.isNaN(rotation)){
rotation = 0;
}
if(Float.isNaN(rotation)) rotation = 0;
}
float targetRot = angleTo(targetPos);