Clean up Biomeset

This commit is contained in:
Frank 2022-06-11 20:09:45 +02:00
parent 2253913c7c
commit a83117b8a9

View file

@ -98,7 +98,7 @@ public class InternalBiomeAPI {
* This method gets called before a world is loaded/created to flush cashes we build. * This method gets called before a world is loaded/created to flush cashes we build.
*/ */
public static void prepareNewLevel() { public static void prepareNewLevel() {
BIOMES_TO_SORT.clear();
} }
/** /**
@ -254,7 +254,7 @@ public class InternalBiomeAPI {
.register((rawId, id, biome) -> { .register((rawId, id, biome) -> {
BCLBiome b = BiomeAPI.getBiome(id); BCLBiome b = BiomeAPI.getBiome(id);
if (!"minecraft".equals(id.getNamespace()) && (b == null || b == BiomeAPI.EMPTY_BIOME)) { if (!"minecraft".equals(id.getNamespace()) && (b == null || b == BiomeAPI.EMPTY_BIOME)) {
//BCLib.LOGGER.info(" #### " + rawId + ", " + biome + ", " + id); BCLib.LOGGER.info(" #### " + rawId + ", " + biome + ", " + id);
BIOMES_TO_SORT.add(id); BIOMES_TO_SORT.add(id);
} }
}); });