mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-26 14:00:14 +00:00
Improve TriStateintCache with Unsafe
This commit is contained in:
1 parent
8b933b0d5c
commit
d6285a5901
4 files changed
+32
-24
No files matched your search
+1
-2
@@ -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
|
||||
|
||||
-1
@@ -19,7 +19,6 @@ import com.dfsek.terra.api.world.biome.PlatformBiome;
|
||||
* Class representing a config-defined biome
|
||||
*/
|
||||
public class UserDefinedBiome implements Biome {
|
||||
private final static AtomicInteger INT_ID_COUNTER = new AtomicInteger(0);
|
||||
private final PlatformBiome vanilla;
|
||||
private final String id;
|
||||
private final BiomeTemplate config;
|
||||
|
||||
Reference in new issue
Block a user