Handle IllegalArgumentException from Spigot snapshot (#2329)
This commit is contained in:
parent
54163396fb
commit
9c4250a7ac
1 changed files with 4 additions and 4 deletions
|
|
@ -129,17 +129,17 @@ public abstract class AbstractMapChunkCache extends MapChunkCache {
|
|||
public int getBlockSkyLight() {
|
||||
try {
|
||||
return snap.getBlockSkyLight(bx, y, bz);
|
||||
} catch (ArrayIndexOutOfBoundsException aioobx) {
|
||||
return 15;
|
||||
} catch (ArrayIndexOutOfBoundsException | IllegalArgumentException x) {
|
||||
}
|
||||
return 15;
|
||||
}
|
||||
@Override
|
||||
public final int getBlockEmittedLight() {
|
||||
try {
|
||||
return snap.getBlockEmittedLight(bx, y, bz);
|
||||
} catch (ArrayIndexOutOfBoundsException aioobx) {
|
||||
return 0;
|
||||
} catch (ArrayIndexOutOfBoundsException | IllegalArgumentException x) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
private void biomePrep() {
|
||||
if(sameneighborbiomecnt != null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue