aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/sk89q/warmroast
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/sk89q/warmroast')
-rw-r--r--src/main/java/com/sk89q/warmroast/McpMapping.java4
-rw-r--r--src/main/java/com/sk89q/warmroast/StackTraceNode.java2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/sk89q/warmroast/McpMapping.java b/src/main/java/com/sk89q/warmroast/McpMapping.java
index 5ef2ff9..2e8b681 100644
--- a/src/main/java/com/sk89q/warmroast/McpMapping.java
+++ b/src/main/java/com/sk89q/warmroast/McpMapping.java
@@ -59,6 +59,10 @@ public class McpMapping {
processMethods(lines);
}
+ public String mapMethodId(String id) {
+ return methods.get(id);
+ }
+
public String fromMethodId(String id) {
String method = methods.get(id);
if (method == null) {
diff --git a/src/main/java/com/sk89q/warmroast/StackTraceNode.java b/src/main/java/com/sk89q/warmroast/StackTraceNode.java
index 1857cd1..5d751a5 100644
--- a/src/main/java/com/sk89q/warmroast/StackTraceNode.java
+++ b/src/main/java/com/sk89q/warmroast/StackTraceNode.java
@@ -70,7 +70,7 @@ public class StackTraceNode extends StackNode {
builder.toString() + "\">" + escapeHtml(getMethodName()) + "</span>()";
}
} else {
- String actualMethod = mapping.fromMethodId(getMethodName());
+ String actualMethod = mapping.mapMethodId(getMethodName());
if (actualMethod == null) {
return escapeHtml(getClassName()) + "." + escapeHtml(getMethodName()) + "()";
} else {