diff --git a/PlotSquared/pom.xml b/PlotSquared/pom.xml
index b2d836294..aa18cace3 100644
--- a/PlotSquared/pom.xml
+++ b/PlotSquared/pom.xml
@@ -8,7 +8,7 @@
UTF-8
PlotSquared
- 2.8.11
+ 2.8.12
PlotSquared
jar
diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/BukkitUtil.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/BukkitUtil.java
index b76150681..478d8502f 100644
--- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/BukkitUtil.java
+++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/bukkit/BukkitUtil.java
@@ -242,11 +242,16 @@ public class BukkitUtil extends BlockManager {
@Override
public int getBiomeFromString(final String biomeStr) {
- final Biome biome = Biome.valueOf(biomeStr.toUpperCase());
- if (biome == null) {
+ try {
+ final Biome biome = Biome.valueOf(biomeStr.toUpperCase());
+ if (biome == null) {
+ return -1;
+ }
+ return Arrays.asList(Biome.values()).indexOf(biome);
+ }
+ catch (IllegalArgumentException e) {
return -1;
}
- return Arrays.asList(Biome.values()).indexOf(biome);
}
@Override