From 14a155147de4bd6af1c54faec47d3bd5b7df84ad Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 21 Apr 2024 19:16:52 -0400 Subject: [PATCH] Item turret status fix --- .../mindustry/world/blocks/defense/turrets/ItemTurret.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/blocks/defense/turrets/ItemTurret.java b/core/src/mindustry/world/blocks/defense/turrets/ItemTurret.java index 5e37d32a97..1a709dc5a8 100644 --- a/core/src/mindustry/world/blocks/defense/turrets/ItemTurret.java +++ b/core/src/mindustry/world/blocks/defense/turrets/ItemTurret.java @@ -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