Skip to content

Commit

Permalink
202402160331
Browse files Browse the repository at this point in the history
  • Loading branch information
PiggyChu620 committed Feb 15, 2024
1 parent d80179d commit 5e1502a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mod.hjson
Original file line number Diff line number Diff line change
@@ -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"

Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion src/ec620/content/EC620Classes.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5e1502a

Please sign in to comment.