mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
LavaHeight
This commit is contained in:
parent
c424ea52fa
commit
3ecaaf33b6
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user