From 3dd943f9613265a72525f1bdb4cafc57215a7a5d Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Fri, 20 Aug 2021 15:53:12 +0100 Subject: [PATCH] Avoid paper-only method --- .../main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java index ecea05119..ba38cb8f1 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/WorldEditPlugin.java @@ -320,7 +320,7 @@ 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()) { - String lowerCaseBiome = biome.getKey().namespace().toLowerCase(Locale.ROOT) + ":" + biome.name().toLowerCase(Locale.ROOT); + String lowerCaseBiome = biome.getKey().toString().toLowerCase(Locale.ROOT); // only register once if (BiomeType.REGISTRY.get(lowerCaseBiome) == null) { BiomeType.REGISTRY.register(lowerCaseBiome, new BiomeType(lowerCaseBiome));