mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fixed null generator world creation?
This commit is contained in:
parent
dd6e13dd94
commit
8191e5f625
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user