From 5e1502a5dd0bdb0346fe1ead31f8f55b583b9583 Mon Sep 17 00:00:00 2001 From: PiggyChu620 <68910494+PiggyChu620@users.noreply.github.com> Date: Fri, 16 Feb 2024 03:31:17 +0800 Subject: [PATCH] 202402160331 --- mod.hjson | 4 ++-- src/ec620/content/EC620Classes.java | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/mod.hjson b/mod.hjson index 9d6b8da..934164c 100644 --- a/mod.hjson +++ b/mod.hjson @@ -1,5 +1,5 @@ #the mod name as displayed in-game -displayName: "Random Planet v0.4.7.2" +displayName: "Random Planet v0.4.7.3" repo: "PiggyChu620/MindustryRandomPlanet" @@ -16,7 +16,7 @@ main: "ec620.EC620JavaMod" description: "Randomly generate a planet and its sectors.\nIt's a mixtech mod, I myself don't like the idea of \"Oh, you can only use these things here, and you can only use those things there, bruh, bruh, bruh!\", so I make one myself, if you don't like mixtech and think it's \"unbalanced\" and \"boring\", then please go away, much appreciated!" #the mod version -version: 0.4.7.2 +version: 0.4.7.3 #the minimum game build required to run this mod minGameVersion: 140 diff --git a/src/ec620/content/EC620Classes.java b/src/ec620/content/EC620Classes.java index 57a4fd8..3780365 100644 --- a/src/ec620/content/EC620Classes.java +++ b/src/ec620/content/EC620Classes.java @@ -173,7 +173,10 @@ public void buildConfiguration(Table table) { if (Vars.state.isCampaign() && other.planet == Vars.state.rules.sector.planet) { - other.planet.sectors.select(s->s!=null && s.info.hasCore).forEach(s->s.info.destination=other); + for(Sector sector:other.planet.sectors.select(s->s!=null && s.info.hasCore)) + { + sector.info.destination=other; + } //Vars.state.rules.sector.info.destination = other; }