Handle lighting checks above world top
This commit is contained in:
parent
915b576b82
commit
179eeca03d
1 changed files with 10 additions and 2 deletions
|
|
@ -114,10 +114,18 @@ public class NewMapChunkCache implements MapChunkCache {
|
||||||
return blkdata;
|
return blkdata;
|
||||||
}
|
}
|
||||||
public int getBlockSkyLight() {
|
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() {
|
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() {
|
private void biomePrep() {
|
||||||
if(sameneighborbiomecnt != null)
|
if(sameneighborbiomecnt != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue