mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 00:04:42 +00:00
Resurface deeper tidal cuts
- Raise the tidal bank resurface limit from 6 to 16 blocks of cut - Choose the surface layers at the natural height, then paint from the top
This commit is contained in:
1 file changed
+4
-4
@@ -51,7 +51,7 @@ public class IrisTerrainNormalActuator extends EngineAssignedActuator<NativeBloc
|
||||
private static final BoundBlockState DIRT = BoundBlockState.of("minecraft:dirt");
|
||||
private static final BoundBlockState NETHERRACK = BoundBlockState.of("minecraft:netherrack");
|
||||
private static final int INLET_SEA_LAYERS = 1;
|
||||
private static final int TIDAL_BANK_SHALLOW_CUT = 6;
|
||||
private static final int TIDAL_BANK_SHALLOW_CUT = 16;
|
||||
@Getter
|
||||
private final RNG rng;
|
||||
|
||||
@@ -314,12 +314,12 @@ public class IrisTerrainNormalActuator extends EngineAssignedActuator<NativeBloc
|
||||
int naturalSurfaceY = naturalColumn == null
|
||||
? complex.naturalTrueHeight(realX, realZ) : naturalColumn.surfaceY(layerSurfaceY);
|
||||
cut = Math.max(0, naturalSurfaceY - layerSurfaceY);
|
||||
if (cut <= TIDAL_BANK_SHALLOW_CUT && complex.isTidalBank(realX, realZ)) {
|
||||
cut = 0;
|
||||
}
|
||||
}
|
||||
blocks = biome.generateLayers(dimension, realX, realZ, rng,
|
||||
layerSurfaceY + cut + 1 - bedrockFloor, layerSurfaceY + cut, data, complex);
|
||||
if (exposeStrata && cut <= TIDAL_BANK_SHALLOW_CUT && complex.isTidalBank(realX, realZ)) {
|
||||
cut = 0;
|
||||
}
|
||||
}
|
||||
|
||||
int deepFloor = Math.max(bedrockFloor, layerCeilingY > 0 ? layerCeilingY + 2 : 0);
|
||||
|
||||
Reference in new issue
Block a user