SteamWar/SpigotCore
Archiviert
13
0

Hotfix POI data mismatch mismatch

Dieser Commit ist enthalten in:
Lixfel 2020-08-15 18:11:28 +02:00
Ursprung dc2d6c9a89
Commit 16a53462f1

Datei anzeigen

@ -26,8 +26,10 @@ public class SWException {
throwable = throwable.getCause(); throwable = throwable.getCause();
} }
String st = stacktrace.toString();
String message = logEvent.getMessage().getFormattedMessage(); 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; return;
else if(message.equals("The server has stopped responding!")){ else if(message.equals("The server has stopped responding!")){
logDisabled = true; logDisabled = true;
@ -51,6 +53,6 @@ public class SWException {
message += player.getName() + " "; message += player.getName() + " ";
SQL.update("INSERT INTO Exception (server, message, stacktrace) VALUES (?, ?, ?)", SQL.update("INSERT INTO Exception (server, message, stacktrace) VALUES (?, ?, ?)",
server, message, stacktrace.toString()); server, message, st);
} }
} }