Recover from BrushListener error

This commit is contained in:
Jesse Boyd 2017-06-09 17:37:26 +10:00
parent a2b7237342
commit 0f3138e894
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 14 additions and 2 deletions

View File

@ -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/");

View File

@ -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