Skip to content

Commit

Permalink
Item turret status fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Apr 21, 2024
1 parent a62540e commit 14a1551
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public void build(Building build, Table table){

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

0 comments on commit 14a1551

Please sign in to comment.