Fix generation of augmented/partial worlds when single worlds are enabled ()

This commit is contained in:
Jordan
2022-05-16 13:21:43 +01:00
committed by GitHub
parent 4433892431
commit 171d2e5e99
2 changed files with 3 additions and 1 deletions
Bukkit/src/main/java/com/plotsquared/bukkit/util
Core/src/main/java/com/plotsquared/core/util

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

@ -34,6 +34,7 @@ import java.util.HashMap;
public abstract class SetupUtils {
public static HashMap<String, GeneratorWrapper<?>> generators = new HashMap<>();
protected boolean loaded = false;
/**
* @since 6.1.0