Handle IllegalArgumentException from Spigot snapshot (#2329)
This commit is contained in:
parent
abea4093fb
commit
5537c98e14
1 changed files with 4 additions and 4 deletions
|
|
@ -129,17 +129,17 @@ public abstract class AbstractMapChunkCache extends MapChunkCache {
|
||||||
public int getBlockSkyLight() {
|
public int getBlockSkyLight() {
|
||||||
try {
|
try {
|
||||||
return snap.getBlockSkyLight(bx, y, bz);
|
return snap.getBlockSkyLight(bx, y, bz);
|
||||||
} catch (ArrayIndexOutOfBoundsException aioobx) {
|
} catch (ArrayIndexOutOfBoundsException | IllegalArgumentException x) {
|
||||||
return 15;
|
|
||||||
}
|
}
|
||||||
|
return 15;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public final int getBlockEmittedLight() {
|
public final int getBlockEmittedLight() {
|
||||||
try {
|
try {
|
||||||
return snap.getBlockEmittedLight(bx, y, bz);
|
return snap.getBlockEmittedLight(bx, y, bz);
|
||||||
} catch (ArrayIndexOutOfBoundsException aioobx) {
|
} catch (ArrayIndexOutOfBoundsException | IllegalArgumentException x) {
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
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