From 8db8d79eff42085ae6cacd27fcd3f9521077fcf9 Mon Sep 17 00:00:00 2001 From: GlennFolker <63218676+GlennFolker@users.noreply.github.com> Date: Sun, 28 May 2023 20:14:15 +0700 Subject: [PATCH] Allow Universe to update all solar systems (#8647) --- core/src/mindustry/game/Universe.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/game/Universe.java b/core/src/mindustry/game/Universe.java index 01b1d714b3..a1c8951db6 100644 --- a/core/src/mindustry/game/Universe.java +++ b/core/src/mindustry/game/Universe.java @@ -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(){