Fix another structure generator NPE

This commit is contained in:
Byteflux 2015-06-02 02:08:51 -07:00
parent e1c9ba99cd
commit 2778f5e485

View File

@ -234,6 +234,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
this.a(this.c);
return this.c(blockposition) != null;
}
@@ -0,0 +0,0 @@ public abstract class StructureGenerator extends WorldGenBase {
}
public boolean a(World world, BlockPosition blockposition) {
+ if (this.c == null) return false; // PaperSpigot
this.a(world);
Iterator iterator = this.e.values().iterator();
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java