Fix nether render in 1.1 and 1.2

This commit is contained in:
Mike Primm 2012-03-04 20:21:01 -06:00
parent f392eb1344
commit 56875a05d4

View File

@ -800,11 +800,16 @@ public class NewMapChunkCache implements MapChunkCache {
int maxy = 0;
if(snaparray[idx] != EMPTY) {
/* Get max height */
if(dw.isNether()) {
maxy = 128;
}
else {
for(int i = 0; i < 16; i++) {
for(int j = 0; j < 16; j++) {
maxy = Math.max(maxy, snaparray[idx].getHighestBlockYAt(i, j));
}
}
}
maxy = (maxy-1) >> 4;
for(int i = 0; i <= nsect; i++) {
if(i <= maxy) { /* Below top? */