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);
|
||||
setupInjector();
|
||||
com.sk89q.worldedit.bukkit.BukkitPlayer.inject();
|
||||
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/");
|
||||
|
@ -34,7 +34,13 @@ public class FaweNukkit implements IFawe, Listener {
|
||||
FaweChunk.HEIGHT = 256;
|
||||
VisualChunk.VISUALIZE_BLOCK = 20 << 4;
|
||||
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
||||
try {
|
||||
new BrushListener(mod);
|
||||
} catch (Throwable e) {
|
||||
debug("====== BRUSH LISTENER FAILED ======");
|
||||
e.printStackTrace();
|
||||
debug("===================================");
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user