mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-01 23:47:21 +00:00
fix caves being non-deterministic
This commit is contained in:
parent
7f6d65a13e
commit
9d44ac0b47
@ -86,13 +86,9 @@ public class IrisCavePlacer implements IRare {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (y == -1) {
|
if (y == -1) {
|
||||||
if(!breakSurface) {
|
int h = (int) caveStartHeight.get(rng, x, z, data);
|
||||||
int eH = engine.getHeight(x, z);
|
int ma = breakSurface ? h : (int) (engine.getComplex().getHeightStream().get(x, z) - 9);
|
||||||
if (caveStartHeight.getMax() > eH) {
|
y = Math.min(h, ma);
|
||||||
caveStartHeight.setMax(eH);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
y = (int) caveStartHeight.get(rng, x, z, data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user