mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-10 20:50:11 +01:00
Handle lighting checks above world top
This commit is contained in:
parent
bdb2620ca9
commit
1ab7a8ddbf
@ -114,10 +114,18 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||
return blkdata;
|
||||
}
|
||||
public int getBlockSkyLight() {
|
||||
return snap.getBlockSkyLight(bx, y, bz);
|
||||
try {
|
||||
return snap.getBlockSkyLight(bx, y, bz);
|
||||
} catch (ArrayIndexOutOfBoundsException aioobx) {
|
||||
return 15;
|
||||
}
|
||||
}
|
||||
public final int getBlockEmittedLight() {
|
||||
return snap.getBlockEmittedLight(bx, y, bz);
|
||||
try {
|
||||
return snap.getBlockEmittedLight(bx, y, bz);
|
||||
} catch (ArrayIndexOutOfBoundsException aioobx) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
private void biomePrep() {
|
||||
if(sameneighborbiomecnt != null)
|
||||
|
Loading…
Reference in New Issue
Block a user