mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-21 08:02:13 +00:00
Improve error message for invalid injector descriptors, closes #115
This commit is contained in:
1 parent
2060164ec8
commit
3ca55a3a5c
5 files changed
+124
-12
No files matched your search
@@ -934,4 +934,12 @@ public class ASMHelper {
|
||||
return arg == null ? "" : arg.toString();
|
||||
}
|
||||
|
||||
public static String getSimpleName(AnnotationNode annotation) {
|
||||
return ASMHelper.getSimpleName(annotation.desc);
|
||||
}
|
||||
|
||||
public static String getSimpleName(String desc) {
|
||||
return desc.substring(desc.lastIndexOf('/') + 1).replace(";", "");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user