From 0f3138e89478ffa94de7aed3be50dd3368e478ba Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 9 Jun 2017 17:37:26 +1000 Subject: [PATCH] Recover from BrushListener error --- .../src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java | 8 +++++++- .../com/boydti/fawe/nukkit/optimization/FaweNukkit.java | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java b/bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java index f83ad037..15b50de2 100644 --- a/bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java +++ b/bukkit/src/main/java/com/boydti/fawe/bukkit/FaweBukkit.java @@ -73,7 +73,13 @@ public class FaweBukkit implements IFawe, Listener { Fawe.set(this); setupInjector(); com.sk89q.worldedit.bukkit.BukkitPlayer.inject(); - new BrushListener(plugin); + try { + new BrushListener(plugin); + } catch (Throwable e) { + debug("====== BRUSH LISTENER FAILED ======"); + e.printStackTrace(); + debug("==================================="); + } if (Bukkit.getVersion().contains("git-Spigot")) { debug("====== USE PAPER ======"); debug("DOWNLOAD: https://ci.destroystokyo.com/job/PaperSpigot/"); diff --git a/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java b/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java index 429ae4d1..f4a90663 100644 --- a/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java +++ b/nukkit/src/main/java/com/boydti/fawe/nukkit/optimization/FaweNukkit.java @@ -34,7 +34,13 @@ public class FaweNukkit implements IFawe, Listener { FaweChunk.HEIGHT = 256; VisualChunk.VISUALIZE_BLOCK = 20 << 4; plugin.getServer().getPluginManager().registerEvents(this, plugin); - new BrushListener(mod); + try { + new BrushListener(mod); + } catch (Throwable e) { + debug("====== BRUSH LISTENER FAILED ======"); + e.printStackTrace(); + debug("==================================="); + } } @EventHandler