diff --git a/Compatibility/src/main/java/com/songoda/core/compatibility/CompatibleBiome.java b/Compatibility/src/main/java/com/songoda/core/compatibility/CompatibleBiome.java index c49797c2..bf1b484a 100644 --- a/Compatibility/src/main/java/com/songoda/core/compatibility/CompatibleBiome.java +++ b/Compatibility/src/main/java/com/songoda/core/compatibility/CompatibleBiome.java @@ -170,10 +170,7 @@ public enum CompatibleBiome { } public boolean isCompatible() { - Version version = versions.getLast(); - ServerVersion.isServerVersionAtLeast(version.version); - - return true; + return getBiome() != null; } public List getVersions() { @@ -181,10 +178,13 @@ public enum CompatibleBiome { } public Biome getBiome() { - for (Version version : versions) { - if (ServerVersion.isServerVersionAtLeast(version.version)) { - return Biome.valueOf(version.biome); + try { + for (Version version : versions) { + if (ServerVersion.isServerVersionAtLeast(version.version)) { + return Biome.valueOf(version.biome); + } } + } catch (IllegalArgumentException ignore) { // This means the supporter biome server version is wrongly configured } return null;