mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 09:17:19 +07:00
click fix
This commit is contained in:
parent
30c45e6a43
commit
be229f441e
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user