mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-02-12 02:34:59 -08:00
parent
c2fcffb0d8
commit
16fb70b0ef
2 changed files with 4 additions and 2 deletions
|
|
@ -462,7 +462,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
|||
player.unit().updateBuilding(isBuilding);
|
||||
}
|
||||
|
||||
if(player.shooting && !wasShooting && player.unit().hasWeapons() && state.rules.unitAmmo && player.unit().ammo <= 0){
|
||||
if(player.shooting && !wasShooting && player.unit().hasWeapons() && state.rules.unitAmmo && !player.team().rules().infiniteAmmo && player.unit().ammo <= 0){
|
||||
player.unit().type.weapons.first().noAmmoSound.at(player.unit());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||
public boolean showed = false, sectorsShown;
|
||||
public String searchText = "";
|
||||
|
||||
public Table sectorTop = new Table(), notifs;
|
||||
public Table sectorTop = new Table(), notifs = new Table();
|
||||
public Label hoverLabel = new Label("");
|
||||
|
||||
public PlanetDialog(){
|
||||
|
|
@ -559,6 +559,8 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||
}
|
||||
|
||||
void rebuildList(){
|
||||
if(notifs == null) return;
|
||||
|
||||
notifs.clear();
|
||||
|
||||
var all = planets.planet.sectors.select(Sector::hasBase);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue