S A N I K

This commit is contained in:
Leijurv 2018-08-28 14:02:57 -07:00
parent 4e531ec578
commit 801f942c30
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -139,7 +139,8 @@ public final class CachedChunk implements IBlockTypeAccess {
int index = z << 4 | x;
heightMap[index] = 0;
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;
break;
}