From 8191e5f625a14148c0ead1c07455b7e1dbdc4986 Mon Sep 17 00:00:00 2001 From: boy0001 Date: Fri, 31 Jul 2015 06:09:28 +1000 Subject: [PATCH] Fixed null generator world creation? --- src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java b/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java index 774f9b268..cf0a800ad 100644 --- a/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java +++ b/src/main/java/com/plotsquared/bukkit/util/BukkitSetupUtils.java @@ -59,7 +59,7 @@ public class BukkitSetupUtils extends SetupUtils { PS.get().config.set("worlds." + world + "." + "generator.init", object.setupGenerator); } PlotGenerator gen = (PlotGenerator) generators.get(object.setupGenerator); - if (gen.generator instanceof BukkitPlotGenerator) { + if (gen != null && gen.generator instanceof BukkitPlotGenerator) { object.setupGenerator = null; } }