mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Terrain chunk fixes
This commit is contained in:
parent
f9e3d96673
commit
b220db9d85
@ -81,8 +81,8 @@ public class MCATerrainChunk implements TerrainChunk {
|
||||
int xx = (x + ox) & 15;
|
||||
int zz = (z + oz) & 15;
|
||||
|
||||
if(y > 255 || y < 0) {
|
||||
return;
|
||||
if(y > getMaxHeight() || y < getMinHeight()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(blockData == null) {
|
||||
@ -98,8 +98,8 @@ public class MCATerrainChunk implements TerrainChunk {
|
||||
y = getMaxHeight();
|
||||
}
|
||||
|
||||
if(y < 0) {
|
||||
y = 0;
|
||||
if(y < getMinHeight()) {
|
||||
y = getMinHeight();
|
||||
}
|
||||
|
||||
return NBTWorld.getBlockData(mcaChunk.getBlockStateAt((x + ox) & 15, y, (z + oz) & 15));
|
||||
|
Loading…
x
Reference in New Issue
Block a user