mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Allow Universe to update all solar systems (#8647)
This commit is contained in:
parent
257d341703
commit
8db8d79eff
1 changed files with 4 additions and 2 deletions
|
|
@ -38,8 +38,10 @@ public class Universe{
|
|||
|
||||
/** Update regardless of whether the player is in the campaign. */
|
||||
public void updateGlobal(){
|
||||
//currently only updates one solar system
|
||||
updatePlanet(Planets.sun);
|
||||
for(Planet planet : content.planets()){
|
||||
//update all parentless planets (solar system root), regardless of which one the player is in
|
||||
if(planet.parent == null) updatePlanet(planet);
|
||||
}
|
||||
}
|
||||
|
||||
public int turn(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue