From 9c4250a7ac819a95a56a0163818ac36c77ae3be9 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Sun, 9 Sep 2018 08:55:36 -0500 Subject: [PATCH] Handle IllegalArgumentException from Spigot snapshot (#2329) --- .../org/dynmap/bukkit/helper/AbstractMapChunkCache.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bukkit-helper/src/main/java/org/dynmap/bukkit/helper/AbstractMapChunkCache.java b/bukkit-helper/src/main/java/org/dynmap/bukkit/helper/AbstractMapChunkCache.java index a00e97d1..d106ac6a 100644 --- a/bukkit-helper/src/main/java/org/dynmap/bukkit/helper/AbstractMapChunkCache.java +++ b/bukkit-helper/src/main/java/org/dynmap/bukkit/helper/AbstractMapChunkCache.java @@ -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)