From 0c33e84e6bb7ef5a358adb6bec026a4f3c4d356b Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 29 Dec 2016 10:20:11 +1100 Subject: [PATCH] Tweak some messages --- core/src/main/java/com/boydti/fawe/Fawe.java | 26 +++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/Fawe.java b/core/src/main/java/com/boydti/fawe/Fawe.java index e6736e00..4f4fcec7 100644 --- a/core/src/main/java/com/boydti/fawe/Fawe.java +++ b/core/src/main/java/com/boydti/fawe/Fawe.java @@ -471,29 +471,31 @@ public class Fawe { debug(" - Using the latest version of WorldEdit/FAWE"); debug(" - AsyncWorldEdit/WorldEditRegions isn't installed"); debug(" - Any other errors in the startup log"); - debug(" - Contact Empire92 for assistance!"); + debug("Contact Empire92 if you need assistance:"); + debug(" - Send me a PM or ask on IRC"); + debug(" - http://webchat.esper.net/?nick=&channels=IntellectualCrafters"); debug("======================================="); } try { com.github.luben.zstd.util.Native.load(); } catch (Throwable e) { - Settings.CLIPBOARD.COMPRESSION_LEVEL = Math.min(6, Settings.CLIPBOARD.COMPRESSION_LEVEL); - Settings.HISTORY.COMPRESSION_LEVEL = Math.min(6, Settings.HISTORY.COMPRESSION_LEVEL); - debug("====== ZSTD COMPRESSION BINDING NOT FOUND ======"); - MainUtil.handleError(e, false); - debug("==============================================="); - debug("FAWE will still work, but some things may be slower"); - debug(" - Try updating your JVM / OS"); - debug(" - Report this issue if you cannot resolve it"); - debug("==============================================="); + if (Settings.CLIPBOARD.COMPRESSION_LEVEL > 6 || Settings.HISTORY.COMPRESSION_LEVEL > 6) { + Settings.CLIPBOARD.COMPRESSION_LEVEL = Math.min(6, Settings.CLIPBOARD.COMPRESSION_LEVEL); + Settings.HISTORY.COMPRESSION_LEVEL = Math.min(6, Settings.HISTORY.COMPRESSION_LEVEL); + debug("====== ZSTD COMPRESSION BINDING NOT FOUND ======"); + debug(e); + debug("==============================================="); + debug("FAWE will work but won't compress data as much"); + debug("==============================================="); + } } try { net.jpountz.util.Native.load(); } catch (Throwable e) { debug("====== LZ4 COMPRESSION BINDING NOT FOUND ======"); - MainUtil.handleError(e, false); + debug(e); debug("==============================================="); - debug("FAWE will still work, but some things may be slower"); + debug("FAWE will work but compression will be slower"); debug(" - Try updating your JVM / OS"); debug(" - Report this issue if you cannot resolve it"); debug("===============================================");