Sample noise biome cache size

- check the cache bound on a few quarts per column instead of every insert
This commit is contained in:
Brian Neumann-Fopiano committed 2026-09-28 11:05:42 -04:00
1 parent 3df1fba518
commit 8b5c109d55
1 file changed
+1 -1
@@ -633,7 +633,7 @@ public final class BukkitBiomePolicy<H, V> implements NativeBiomeSourcePolicy<H>
return existingHolder;
}
if (noiseBiomeCache.size() > NOISE_BIOME_CACHE_MAX) {
if ((y & 63) == 0 && noiseBiomeCache.size() > NOISE_BIOME_CACHE_MAX) {
noiseBiomeCache.clear();
}