Avoid paper-only method

This commit is contained in:
dordsor21 2021-08-20 15:53:12 +01:00
parent cf68caff99
commit 3dd943f961
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -320,7 +320,7 @@ public class WorldEditPlugin extends JavaPlugin {
} else { } else {
LOGGER.warn("Failed to load biomes via adapter (not present). Will load via bukkit"); LOGGER.warn("Failed to load biomes via adapter (not present). Will load via bukkit");
for (Biome biome : Biome.values()) { for (Biome biome : Biome.values()) {
String lowerCaseBiome = biome.getKey().namespace().toLowerCase(Locale.ROOT) + ":" + biome.name().toLowerCase(Locale.ROOT); String lowerCaseBiome = biome.getKey().toString().toLowerCase(Locale.ROOT);
// only register once // only register once
if (BiomeType.REGISTRY.get(lowerCaseBiome) == null) { if (BiomeType.REGISTRY.get(lowerCaseBiome) == null) {
BiomeType.REGISTRY.register(lowerCaseBiome, new BiomeType(lowerCaseBiome)); BiomeType.REGISTRY.register(lowerCaseBiome, new BiomeType(lowerCaseBiome));