mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-23 13:01:38 -08:00
click fix
This commit is contained in:
parent
30c45e6a43
commit
be229f441e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue