geforkt von Mirrors/Paper
Deobfuscate stacktraces in sync load info (#6103)
Dieser Commit ist enthalten in:
Ursprung
7037cd401f
Commit
8a664e6bbc
@ -107,6 +107,19 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
public static int itemValidationDisplayNameLength = 8192;
|
public static int itemValidationDisplayNameLength = 8192;
|
||||||
public static int itemValidationLocNameLength = 8192;
|
public static int itemValidationLocNameLength = 8192;
|
||||||
public static int itemValidationLoreLineLength = 8192;
|
public static int itemValidationLoreLineLength = 8192;
|
||||||
|
diff --git a/src/main/java/com/destroystokyo/paper/io/SyncLoadFinder.java b/src/main/java/com/destroystokyo/paper/io/SyncLoadFinder.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/com/destroystokyo/paper/io/SyncLoadFinder.java
|
||||||
|
+++ b/src/main/java/com/destroystokyo/paper/io/SyncLoadFinder.java
|
||||||
|
@@ -0,0 +0,0 @@ public class SyncLoadFinder {
|
||||||
|
|
||||||
|
final JsonArray traces = new JsonArray();
|
||||||
|
|
||||||
|
- for (StackTraceElement element : pair.getFirst().stacktrace) {
|
||||||
|
+ for (StackTraceElement element : io.papermc.paper.util.StacktraceDeobfuscator.INSTANCE.deobfuscateStacktrace(pair.getFirst().stacktrace)) {
|
||||||
|
traces.add(String.valueOf(element));
|
||||||
|
}
|
||||||
|
|
||||||
diff --git a/src/main/java/io/papermc/paper/logging/StacktraceDeobfuscatingRewritePolicy.java b/src/main/java/io/papermc/paper/logging/StacktraceDeobfuscatingRewritePolicy.java
|
diff --git a/src/main/java/io/papermc/paper/logging/StacktraceDeobfuscatingRewritePolicy.java b/src/main/java/io/papermc/paper/logging/StacktraceDeobfuscatingRewritePolicy.java
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren