Recover from BrushListener error
This commit is contained in:
parent
a2b7237342
commit
0f3138e894
@ -73,7 +73,13 @@ public class FaweBukkit implements IFawe, Listener {
|
|||||||
Fawe.set(this);
|
Fawe.set(this);
|
||||||
setupInjector();
|
setupInjector();
|
||||||
com.sk89q.worldedit.bukkit.BukkitPlayer.inject();
|
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")) {
|
if (Bukkit.getVersion().contains("git-Spigot")) {
|
||||||
debug("====== USE PAPER ======");
|
debug("====== USE PAPER ======");
|
||||||
debug("DOWNLOAD: https://ci.destroystokyo.com/job/PaperSpigot/");
|
debug("DOWNLOAD: https://ci.destroystokyo.com/job/PaperSpigot/");
|
||||||
|
@ -34,7 +34,13 @@ public class FaweNukkit implements IFawe, Listener {
|
|||||||
FaweChunk.HEIGHT = 256;
|
FaweChunk.HEIGHT = 256;
|
||||||
VisualChunk.VISUALIZE_BLOCK = 20 << 4;
|
VisualChunk.VISUALIZE_BLOCK = 20 << 4;
|
||||||
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
||||||
new BrushListener(mod);
|
try {
|
||||||
|
new BrushListener(mod);
|
||||||
|
} catch (Throwable e) {
|
||||||
|
debug("====== BRUSH LISTENER FAILED ======");
|
||||||
|
e.printStackTrace();
|
||||||
|
debug("===================================");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
|
Loading…
Reference in New Issue
Block a user