Fix nether render in 1.1 and 1.2
This commit is contained in:
parent
f392eb1344
commit
56875a05d4
1 changed files with 8 additions and 3 deletions
|
|
@ -800,9 +800,14 @@ public class NewMapChunkCache implements MapChunkCache {
|
|||
int maxy = 0;
|
||||
if(snaparray[idx] != EMPTY) {
|
||||
/* Get max height */
|
||||
for(int i = 0; i < 16; i++) {
|
||||
for(int j = 0; j < 16; j++) {
|
||||
maxy = Math.max(maxy, snaparray[idx].getHighestBlockYAt(i, j));
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue