Skip checking for custom biomes on 1.15.2

This commit is contained in:
NotMyFault 2021-08-23 21:15:41 +02:00
parent 1a0f7df3f4
commit 869a8058cc
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -321,7 +321,7 @@ public class WorldEditPlugin extends JavaPlugin {
LOGGER.warn("Failed to load biomes via adapter (not present). Will load via bukkit");
for (Biome biome : Biome.values()) {
// Custom is bad
if (biome == Biome.CUSTOM) {
if (biome.name().equals("CUSTOM")) {
continue;
}
String lowerCaseBiome = biome.getKey().toString().toLowerCase(Locale.ROOT);