Item turret status fix

This commit is contained in:
Anuken 2024-04-21 19:16:52 -04:00
parent a62540ec7e
commit 14a155147d

View File

@ -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