mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 02:36:59 +00:00
Height fixes
This commit is contained in:
parent
49b494ed02
commit
9f3e5fea38
@ -340,6 +340,11 @@ public abstract class TopographicTerrainProvider extends ParallelTerrainProvider
|
||||
}
|
||||
}
|
||||
|
||||
if(Math.max(height, fluidHeight) > 255)
|
||||
{
|
||||
return height;
|
||||
}
|
||||
|
||||
block = sliver.get(Math.max(height, fluidHeight));
|
||||
|
||||
// Decorate True Surface
|
||||
|
@ -87,7 +87,18 @@ public class AtomicSliver
|
||||
{
|
||||
return null;
|
||||
}
|
||||
FastBlockData b = block[h < 256 ? h : 256];
|
||||
|
||||
if(h > 255)
|
||||
{
|
||||
h = 255;
|
||||
}
|
||||
|
||||
if(h < 0)
|
||||
{
|
||||
h = 0;
|
||||
}
|
||||
|
||||
FastBlockData b = block[h];
|
||||
last = M.ms();
|
||||
|
||||
if(b == null)
|
||||
|
@ -27,7 +27,7 @@ public class IrisTerrainGenerator
|
||||
{
|
||||
complex.flash(seed, dimension, data);
|
||||
}
|
||||
|
||||
|
||||
public void generate(int x, int z, Hunk<BlockData> blocks, Hunk<Biome> biomes)
|
||||
{
|
||||
// RNG rng = new RNG((((long) x) << 32) | (z & 0xffffffffL));
|
||||
|
Loading…
x
Reference in New Issue
Block a user