Dieser Commit ist enthalten in:
Ursprung
8457e4cb8f
Commit
e5147943d9
@ -51,7 +51,12 @@ public class CrashDetector {
|
||||
while (run) {
|
||||
long curTime = System.currentTimeMillis();
|
||||
if(curTime - TIMEOUT > lastTick.get()) {
|
||||
SWException.log("Server hung for " + (curTime - lastTick.get()) + "ms", Arrays.stream(mainThread.getStackTrace()).map(StackTraceElement::toString).collect(Collectors.joining("\n")));
|
||||
if(mainThread.isAlive()) {
|
||||
SWException.log("Server hung for " + (curTime - lastTick.get()) + "ms", Arrays.stream(mainThread.getStackTrace()).map(StackTraceElement::toString).collect(Collectors.joining("\n")));
|
||||
} else {
|
||||
SWException.log("Server thread already dead, stopping server", "");
|
||||
System.exit(0);
|
||||
}
|
||||
lastTick.set(curTime);
|
||||
}
|
||||
try {
|
||||
|
@ -139,6 +139,7 @@ public class ErrorHandler extends Handler {
|
||||
startsWith.add("This version of ViaBackwards does not fully support 1.19 servers.");
|
||||
startsWith.add("Biome with id");
|
||||
startsWith.add("1.16 and 1.16.1 clients are only partially supported");
|
||||
startsWith.add("Unable to parse CustomName from ");
|
||||
ignoreStartsWith = Collections.unmodifiableList(startsWith);
|
||||
|
||||
List<String> contains = new ArrayList<>();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren