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; }