mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 15:02:03 -08:00
hide orbits of hidden planets
This commit is contained in:
parent
97b0461d7f
commit
05b77d787e
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ public class PlanetRenderer implements Disposable{
|
|||
}
|
||||
|
||||
private void renderOrbit(Planet planet){
|
||||
if(planet.parent == null) return;
|
||||
if(planet.parent == null || !planet.visible()) return;
|
||||
|
||||
Vec3 center = planet.parent.position;
|
||||
float radius = planet.orbitRadius;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue