Fixed null generator world creation?

This commit is contained in:
boy0001 2015-07-31 06:09:28 +10:00
parent dd6e13dd94
commit 8191e5f625

View File

@ -59,7 +59,7 @@ public class BukkitSetupUtils extends SetupUtils {
PS.get().config.set("worlds." + world + "." + "generator.init", object.setupGenerator);
}
PlotGenerator<ChunkGenerator> gen = (PlotGenerator<ChunkGenerator>) generators.get(object.setupGenerator);
if (gen.generator instanceof BukkitPlotGenerator) {
if (gen != null && gen.generator instanceof BukkitPlotGenerator) {
object.setupGenerator = null;
}
}