Fixed scathe bugs

This commit is contained in:
Anuken
2025-01-12 20:49:06 -05:00
parent f23dd0467f
commit 59e64ab37c
5 changed files with 15 additions and 11 deletions
@@ -359,8 +359,8 @@ public class Turret extends ReloadTurret{
offset.set(h.deltaX(), h.deltaY()).scl(shoot.firstShotDelay / Time.delta);
}
if(predictTarget){
targetPos.set(Predict.intercept(this, pos, offset.x, offset.y, bullet.speed <= 0.01f ? 99999999f : bullet.speed));
if(predictTarget && bullet.speed >= 0.01f){
targetPos.set(Predict.intercept(this, pos, offset.x, offset.y, bullet.speed));
}else{
targetPos.set(pos);
}