From be229f441eb21fbd9cf593d5a559768917e65d35 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 13 Sep 2020 14:32:15 -0400 Subject: [PATCH] click fix --- core/src/mindustry/input/InputHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/input/InputHandler.java b/core/src/mindustry/input/InputHandler.java index 2d53ae8beb..89ffc7c7c0 100644 --- a/core/src/mindustry/input/InputHandler.java +++ b/core/src/mindustry/input/InputHandler.java @@ -353,7 +353,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{ player.builder().updateBuilding(isBuilding); } - if(player.shooting && !wasShooting && player.unit().hasWeapons()){ + if(player.shooting && !wasShooting && player.unit().hasWeapons() && state.rules.unitAmmo && player.unit().ammo <= 0){ player.unit().type().weapons.first().noAmmoSound.at(player.unit()); }