mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-10 02:37:12 +07:00
Corrected parallax target check
This commit is contained in:
parent
c716c16746
commit
6417073a82
@ -97,7 +97,7 @@ public class TractorBeamTurret extends BaseTurret{
|
||||
any = false;
|
||||
|
||||
//look at target
|
||||
if(target != null && target.within(this, range) && target.team() != team && target.type.flying && efficiency() > 0.02f){
|
||||
if(target != null && target.within(this, range) && target.team() != team && target.checkTarget(targetAir, targetGround) && efficiency() > 0.02f){
|
||||
if(!headless){
|
||||
control.sound.loop(shootSound, this, shootSoundVolume);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user