From 16a53462f12ec6d634380f519759e13f0533502e Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 15 Aug 2020 18:11:28 +0200 Subject: [PATCH] Hotfix POI data mismatch mismatch --- SpigotCore_Main/src/de/steamwar/sql/SWException.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/sql/SWException.java b/SpigotCore_Main/src/de/steamwar/sql/SWException.java index 9c35050..64bec7b 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/SWException.java +++ b/SpigotCore_Main/src/de/steamwar/sql/SWException.java @@ -26,8 +26,10 @@ public class SWException { throwable = throwable.getCause(); } + String st = stacktrace.toString(); + String message = logEvent.getMessage().getFormattedMessage(); - if(message.startsWith("Block at") || message.contains("POI data mismatch")) + if(message.startsWith("Block at") || st.contains("POI data mismatch")) return; else if(message.equals("The server has stopped responding!")){ logDisabled = true; @@ -51,6 +53,6 @@ public class SWException { message += player.getName() + " "; SQL.update("INSERT INTO Exception (server, message, stacktrace) VALUES (?, ?, ?)", - server, message, stacktrace.toString()); + server, message, st); } }