LavaHeight

This commit is contained in:
Brian Fopiano 2022-01-14 10:05:18 -08:00
parent c424ea52fa
commit 3ecaaf33b6
2 changed files with 8 additions and 4 deletions

View File

@ -68,7 +68,7 @@ public class IrisCarveModifier extends EngineAssignedModifier<BlockData> {
return;
}
if(yy >= 256 || yy <= 0) { // Yes, skip bedrock
if(yy >= getEngine().getWorld().maxHeight() - getEngine().getWorld().minHeight() || yy <= 0) { // Yes, skip bedrock
return;
}
@ -109,9 +109,13 @@ public class IrisCarveModifier extends EngineAssignedModifier<BlockData> {
output.set(rx, yy, rz, WATER);
} else if(c.isLava()) {
output.set(rx, yy, rz, LAVA);
} else {
if(getEngine().getDimension().getCaveLavaHeight() > yy){
output.set(rx, yy, rz, LAVA);
} else {
output.set(rx, yy, rz, AIR);
}
}
};
mc.iterate(MatterCavern.class, iterator);

View File

@ -230,8 +230,8 @@ public class IrisDimension extends IrisRegistrant {
private KList<IrisOreGenerator> ores = new KList<>();
@MinNumber(0)
@MaxNumber(318)
@Desc("The rock zoom mostly for zooming in on a wispy palette")
private int lavaLayer = 25;
@Desc("The Subterrain Fluid Layer Height")
private int caveLavaHeight = 8;
public int getMaxHeight() {
return 320;