Don't setup single plot worlds

This commit is contained in:
Jesse Boyd 2019-04-17 14:00:01 +10:00
parent 0fdc5eafbd
commit 27eda9eb7c
No known key found for this signature in database
GPG key ID: 59F1DE6293AF6E1F

View file

@ -131,15 +131,13 @@ public class BukkitSetupUtils extends SetupUtils {
for (ConfigurationNode step : steps) { for (ConfigurationNode step : steps) {
worldSection.set(step.getConstant(), step.getValue()); worldSection.set(step.getConstant(), step.getValue());
} }
PlotSquared.get().worlds.set("worlds." + world + ".generator.type", object.type); if (!object.plotManager.endsWith(":single")) {
PlotSquared.get().worlds PlotSquared.get().worlds.set("worlds." + world + ".generator.type", object.type);
.set("worlds." + world + ".generator.terrain", object.terrain); PlotSquared.get().worlds.set("worlds." + world + ".generator.terrain", object.terrain);
PlotSquared.get().worlds PlotSquared.get().worlds.set("worlds." + world + ".generator.plugin", object.plotManager);
.set("worlds." + world + ".generator.plugin", object.plotManager); if (object.setupGenerator != null && !object.setupGenerator.equals(object.plotManager)) {
if (object.setupGenerator != null && !object.setupGenerator PlotSquared.get().worlds.set("worlds." + world + ".generator.init", object.setupGenerator);
.equals(object.plotManager)) { }
PlotSquared.get().worlds
.set("worlds." + world + ".generator.init", object.setupGenerator);
} }
GeneratorWrapper<?> gen = SetupUtils.generators.get(object.setupGenerator); GeneratorWrapper<?> gen = SetupUtils.generators.get(object.setupGenerator);
if (gen != null && gen.isFull()) { if (gen != null && gen.isFull()) {