Load default biomes into registry at earliest convenience, then load custom biomes later.

This commit is contained in:
dordsor21
2021-08-19 13:48:24 +01:00
parent 563ad7761a
commit f412796f28
3 changed files with 12 additions and 16 deletions

View File

@ -311,10 +311,9 @@ public interface BukkitImplAdapter<T> extends IBukkitAdapter {
/**
* Returns an iterable of all biomes known to the server.
*
* @param world the world to load the registered biomes from.
* @return all biomes known to the server.
*/
default Iterable<NamespacedKey> getRegisteredBiomes(World world) {
default Iterable<NamespacedKey> getRegisteredBiomes() {
return Arrays.stream(Biome.values())
.map(Keyed::getKey)
.collect(Collectors.toList());