mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 16:25:36 +00:00
Read the dimension once per biome actuation
- Hoist the dimension lookup out of the column loop
This commit is contained in:
1 parent
417e82d570
commit
ee9dfdfb2f
1 file changed
+2
-1
@@ -61,6 +61,7 @@ public class IrisBiomeActuator extends EngineAssignedActuator<NativeBiome> {
|
||||
ChunkedDataCache<IrisBiome> biomeCache = context.getBiome();
|
||||
IrisComplex complex = context.getComplex();
|
||||
DimensionStackContext dimensionStackContext = engine.getDimensionStackContext();
|
||||
IrisDimension dimension = getDimension();
|
||||
|
||||
for (int xf = 0; xf < width; xf++) {
|
||||
for (int zf = 0; zf < depth; zf++) {
|
||||
@@ -69,7 +70,7 @@ public class IrisBiomeActuator extends EngineAssignedActuator<NativeBiome> {
|
||||
IrisBiome biome = biomeCache.get(xf, zf);
|
||||
NativeBiome platformBiome = resolve(biomeKey(
|
||||
biome,
|
||||
getDimension(),
|
||||
dimension,
|
||||
engine,
|
||||
worldX,
|
||||
0,
|
||||
|
||||
Reference in new issue
Block a user