This commit is contained in:
Jesse Boyd
2016-03-02 06:59:05 +11:00
22 changed files with 379 additions and 209 deletions

View File

@ -158,9 +158,6 @@ public class BukkitUtil extends WorldUtil {
public int getBiomeFromString(final String biomeStr) {
try {
final Biome biome = Biome.valueOf(biomeStr.toUpperCase());
if (biome == null) {
return -1;
}
return Arrays.asList(Biome.values()).indexOf(biome);
} catch (final IllegalArgumentException e) {
return -1;