mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-19 23:31:01 +00:00
Improve TriStateintCache with Unsafe
This commit is contained in:
+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