mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 18:55:18 +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));
|
block = sliver.get(Math.max(height, fluidHeight));
|
||||||
|
|
||||||
// Decorate True Surface
|
// Decorate True Surface
|
||||||
|
@ -87,7 +87,18 @@ public class AtomicSliver
|
|||||||
{
|
{
|
||||||
return null;
|
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();
|
last = M.ms();
|
||||||
|
|
||||||
if(b == null)
|
if(b == null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user