Skip to content

Commit

Permalink
chore: only do something if different world generator selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrueckert committed Jul 17, 2023
1 parent ff747b2 commit 22fe085
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ public WorldGeneratorInfo get() {
@Override
public void set(WorldGeneratorInfo value) {
if (value != null) {
config.getWorldGeneration().setDefaultGenerator(value.getUri());
addNewWorld(value);
if (universeWrapper.getTargetWorld() == null || value != universeWrapper.getTargetWorld().getWorldGeneratorInfo()) {
config.getWorldGeneration().setDefaultGenerator(value.getUri());
addNewWorld(value);
}
}
}
});
Expand Down

0 comments on commit 22fe085

Please sign in to comment.