fix a few issues (there are more remaining)
All checks were successful
Publish to snapshot maven / build (push) Successful in 13s
All checks were successful
Publish to snapshot maven / build (push) Successful in 13s
This commit is contained in:
parent
7005d47d1e
commit
8ce3afa7d6
|
@ -59,8 +59,8 @@ public class NonsenseRemapper {
|
|||
tasks.add(() -> {
|
||||
try {
|
||||
if (path.getFileName().toString().endsWith(".class")) {
|
||||
String className = path.getFileName().toString().substring(0, path.getFileName().toString().lastIndexOf("."));
|
||||
Path result = outFs.getPath(path.toString()).resolveSibling(mapper.map(className) + ".class");
|
||||
String className = path.toString().substring(1, path.toString().lastIndexOf("."));
|
||||
Path result = outFs.getPath(mapper.map(className) + ".class");
|
||||
Path newClass = result.toAbsolutePath();
|
||||
byte[] bytes = Files.readAllBytes(path);
|
||||
ClassReader reader = new ClassReader(bytes);
|
||||
|
|
|
@ -93,11 +93,13 @@ public class ParameterMethodRemapper extends MethodRemapper {
|
|||
cleaned = cleaned.substring(cleaned.lastIndexOf('/') + 1);
|
||||
}
|
||||
|
||||
cleaned = cleaned.replaceAll("\\$\\d+;", "");
|
||||
|
||||
if (cleaned.indexOf('$') != -1) {
|
||||
cleaned = cleaned.substring(cleaned.lastIndexOf('$') + 1);
|
||||
}
|
||||
|
||||
cleaned = cleaned.replaceAll("\\[]", "").replaceAll("(.*)\\d.*", "$1").replace(";", "");
|
||||
cleaned = cleaned.replaceAll("\\[]", "").replaceAll("(.*)\\d", "$1").replace(";", "");
|
||||
|
||||
return cleaned;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue