Skip registering "custom" biome.

Update adapters to 332c1f6bb17d2ded53fe5b09f3f2a4578f3f9bfc
This commit is contained in:
dordsor21 2021-08-20 16:30:51 +01:00
parent 3dd943f961
commit 8e899b8524
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B
2 changed files with 4 additions and 0 deletions

View File

@ -320,6 +320,10 @@ public class WorldEditPlugin extends JavaPlugin {
} else {
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) {
continue;
}
String lowerCaseBiome = biome.getKey().toString().toLowerCase(Locale.ROOT);
// only register once
if (BiomeType.REGISTRY.get(lowerCaseBiome) == null) {