diff --git a/core/assets/maps/two.msav b/core/assets/maps/two.msav index 19bf271f00..26abd5f68c 100644 Binary files a/core/assets/maps/two.msav and b/core/assets/maps/two.msav differ diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java index c6b9903e19..c3e94de43c 100644 --- a/core/src/mindustry/core/Control.java +++ b/core/src/mindustry/core/Control.java @@ -160,7 +160,7 @@ public class Control implements ApplicationListener, Loadable{ }); Events.on(SectorCaptureEvent.class, e -> { - checkAutoUnlocks(); + app.post(this::checkAutoUnlocks); }); //delete save on campaign game over @@ -303,7 +303,7 @@ public class Control implements ApplicationListener, Loadable{ } /** Automatically unlocks things with no requirements and no locked parents. */ - void checkAutoUnlocks(){ + public void checkAutoUnlocks(){ if(net.client()) return; for(TechNode node : TechTree.all){ diff --git a/core/src/mindustry/ui/dialogs/PlanetDialog.java b/core/src/mindustry/ui/dialogs/PlanetDialog.java index d90cfcfab6..5c99b5e3eb 100644 --- a/core/src/mindustry/ui/dialogs/PlanetDialog.java +++ b/core/src/mindustry/ui/dialogs/PlanetDialog.java @@ -318,6 +318,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{ void lookAt(Sector sector){ if(sector.tile == Ptile.empty) return; + state.planet = sector.planet; state.camPos.set(Tmp.v33.set(sector.tile.v).rotate(Vec3.Y, -sector.planet.getRotation())); }