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; } }