mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
Avoid paper-only method
This commit is contained in:
parent
cf68caff99
commit
3dd943f961
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user