S A N I K
This commit is contained in:
parent
4e531ec578
commit
801f942c30
@ -139,7 +139,8 @@ public final class CachedChunk implements IBlockTypeAccess {
|
|||||||
int index = z << 4 | x;
|
int index = z << 4 | x;
|
||||||
heightMap[index] = 0;
|
heightMap[index] = 0;
|
||||||
for (int y = 256; y >= 0; y--) {
|
for (int y = 256; y >= 0; y--) {
|
||||||
if (getType(x, y, z) != PathingBlockType.AIR) {
|
int i = getPositionIndex(x, y, z);
|
||||||
|
if (data.get(i) || data.get(i + 1)) {
|
||||||
heightMap[index] = y;
|
heightMap[index] = y;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user