Skip to content

Commit

Permalink
Fix generation of augmented/partial worlds when single worlds are ena…
Browse files Browse the repository at this point in the history
…bled (#3615)
  • Loading branch information
dordsor21 committed May 16, 2022
1 parent 4433892 commit 171d2e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public BukkitSetupUtils(

@Override
public void updateGenerators(final boolean force) {
if (!SetupUtils.generators.isEmpty() && !force) {
if (loaded && !SetupUtils.generators.isEmpty() && !force) {
return;
}
String testWorld = "CheckingPlotSquaredGenerator";
Expand All @@ -100,6 +100,7 @@ public void updateGenerators(final boolean force) {
e.printStackTrace();
}
}
loaded = true;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
public abstract class SetupUtils {

public static HashMap<String, GeneratorWrapper<?>> generators = new HashMap<>();
protected boolean loaded = false;

/**
* @since 6.1.0
Expand Down

0 comments on commit 171d2e5

Please sign in to comment.