Merge remote-tracking branch 'origin/master'

This commit is contained in:
cyberpwn 2022-01-15 08:50:39 -05:00
commit ccd05c04a5
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;
}
@ -110,7 +110,11 @@ public class IrisCarveModifier extends EngineAssignedModifier<BlockData> {
} else if(c.isLava()) {
output.set(rx, yy, rz, LAVA);
} else {
output.set(rx, yy, rz, AIR);
if(getEngine().getDimension().getCaveLavaHeight() > yy){
output.set(rx, yy, rz, LAVA);
} else {
output.set(rx, yy, rz, AIR);
}
}
};

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;