diff --git a/PlotSquared/pom.xml b/PlotSquared/pom.xml
index 57f9da66d..2ceca78fd 100644
--- a/PlotSquared/pom.xml
+++ b/PlotSquared/pom.xml
@@ -8,7 +8,7 @@
UTF-8
PlotSquared
- 2.8
+ 2.8.1
PlotSquared
jar
diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridGen.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridGen.java
index 96a0a4036..0fe2de4f3 100644
--- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridGen.java
+++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridGen.java
@@ -223,6 +223,9 @@ public class HybridGen extends PlotGenerator {
*/
@Override
public Location getFixedSpawnLocation(final World world, final Random random) {
+ if (this.plotworld == null) {
+ return new Location(world, 0, 128, 0);
+ }
return new Location(world, 0, this.plotworld.ROAD_HEIGHT + 2, 0);
}
diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java
index 641d9c8af..5ff5d73f8 100644
--- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java
+++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/generator/HybridPop.java
@@ -149,10 +149,12 @@ public class HybridPop extends BlockPopulator {
setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
}
}
- HashSet states = this.plotworld.G_SCH_STATE.get(loc);
- if (states != null) {
- for (PlotItem items : states) {
- BlockManager.manager.addItems(this.plotworld.worldname, items);
+ if (this.plotworld.G_SCH_STATE != null) {
+ HashSet states = this.plotworld.G_SCH_STATE.get(loc);
+ if (states != null) {
+ for (PlotItem items : states) {
+ BlockManager.manager.addItems(this.plotworld.worldname, items);
+ }
}
}
}
@@ -204,12 +206,14 @@ public class HybridPop extends BlockPopulator {
setBlock(w, x, (short) (this.plotheight + y), z, blocks.get(y));
}
}
- HashSet states = this.plotworld.G_SCH_STATE.get(loc);
- if (states != null) {
- for (PlotItem items : states) {
- items.x = this.X + x;
- items.z = this.Z + z;
- BlockManager.manager.addItems(this.plotworld.worldname, items);
+ if (this.plotworld.G_SCH_STATE != null) {
+ HashSet states = this.plotworld.G_SCH_STATE.get(loc);
+ if (states != null) {
+ for (PlotItem items : states) {
+ items.x = this.X + x;
+ items.z = this.Z + z;
+ BlockManager.manager.addItems(this.plotworld.worldname, items);
+ }
}
}
}