mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 21:10:53 +07:00
Fixed #9769
This commit is contained in:
parent
14a155147d
commit
d7191e4f71
@ -80,7 +80,7 @@ public class ItemTurret extends Turret{
|
||||
@Override
|
||||
public float efficiency(Building build){
|
||||
//valid when it can shoot
|
||||
return build instanceof ItemTurretBuild it && it.hasAmmo() ? 1f : 0f;
|
||||
return build instanceof ItemTurretBuild it && it.ammo.size > 0 && (it.ammo.peek().amount >= ammoPerShot || it.cheating()) ? 1f : 0f;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user