Improve TriStateintCache with Unsafe

This commit is contained in:
Zoe Gidiere
2025-12-10 22:33:49 -07:00
parent 8b933b0d5c
commit d6285a5901
4 changed files with 32 additions and 24 deletions
@@ -33,8 +33,7 @@ public class ReplaceExtrusion implements Extrusion {
this.range = range;
this.biomes = biomes;
this.hasTag = BiomeQueries.has(tag);
this.cache = new TriStateIntCache(65536);
this.cache = new TriStateIntCache(Math.max(512, Biome.INT_ID_COUNTER.get()));
}
@Override