mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-05 21:10:53 +07:00
Item turret status fix
This commit is contained in:
parent
a62540ec7e
commit
14a155147d
@ -79,8 +79,8 @@ public class ItemTurret extends Turret{
|
||||
|
||||
@Override
|
||||
public float efficiency(Building build){
|
||||
//valid when there's any ammo in the turret
|
||||
return build instanceof ItemTurretBuild it && !it.ammo.isEmpty() ? 1f : 0f;
|
||||
//valid when it can shoot
|
||||
return build instanceof ItemTurretBuild it && it.hasAmmo() ? 1f : 0f;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user