mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-10 20:50:11 +01:00
Fix nether render in 1.1 and 1.2
This commit is contained in:
parent
f392eb1344
commit
56875a05d4
@ -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…
Reference in New Issue
Block a user