mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-06 07:30:35 +07:00
Planet method renaming
This commit is contained in:
parent
c4803d29da
commit
dfd2b22917
@ -149,7 +149,7 @@ public class PlanetRenderer implements Disposable{
|
||||
public void renderTransparent(Planet planet){
|
||||
if(!planet.visible()) return;
|
||||
|
||||
if(planet.isLandable() && planet == this.planet){
|
||||
if(planet.hasGrid() && planet == this.planet){
|
||||
renderSectors(planet);
|
||||
}
|
||||
|
||||
|
@ -125,7 +125,8 @@ public class Planet extends UnlockableContent{
|
||||
sectors.get(index).preset = preset;
|
||||
}
|
||||
|
||||
public boolean isLandable(){
|
||||
/** @return whether this planet has a sector grid to select. */
|
||||
public boolean hasGrid(){
|
||||
return grid != null && generator != null && sectors.size > 0;
|
||||
}
|
||||
|
||||
|
@ -593,7 +593,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
}
|
||||
}
|
||||
|
||||
if(planets.planet.isLandable()){
|
||||
if(planets.planet.hasGrid()){
|
||||
hovered = planets.planet.getSector(planets.cam.getMouseRay(), PlanetRenderer.outlineRad);
|
||||
}else{
|
||||
hovered = selected = null;
|
||||
|
Loading…
Reference in New Issue
Block a user