Update tiny-remapper and enable "inferNameFromSameLvIndex" to fix issues with decompiling some locals.
parent
d8675e056b
commit
c380b36739
|
@ -78,7 +78,7 @@ dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
// tinyfile management
|
// tinyfile management
|
||||||
implementation ('net.fabricmc:tiny-remapper:0.6.0')
|
implementation ('net.fabricmc:tiny-remapper:0.7.0')
|
||||||
implementation 'net.fabricmc:access-widener:2.0.0'
|
implementation 'net.fabricmc:access-widener:2.0.0'
|
||||||
implementation 'net.fabricmc:mapping-io:0.2.1'
|
implementation 'net.fabricmc:mapping-io:0.2.1'
|
||||||
|
|
||||||
|
|
|
@ -79,6 +79,7 @@ public final class TinyRemapperHelper {
|
||||||
.renameInvalidLocals(true)
|
.renameInvalidLocals(true)
|
||||||
.rebuildSourceFilenames(true)
|
.rebuildSourceFilenames(true)
|
||||||
.invalidLvNamePattern(MC_LV_PATTERN)
|
.invalidLvNamePattern(MC_LV_PATTERN)
|
||||||
|
.inferNameFromSameLvIndex(true)
|
||||||
.extraPreApplyVisitor((cls, next) -> {
|
.extraPreApplyVisitor((cls, next) -> {
|
||||||
if (fixRecords && !cls.isRecord() && "java/lang/Record".equals(cls.getSuperName())) {
|
if (fixRecords && !cls.isRecord() && "java/lang/Record".equals(cls.getSuperName())) {
|
||||||
return new RecordComponentFixVisitor(next, mappingTree, intermediaryNsId);
|
return new RecordComponentFixVisitor(next, mappingTree, intermediaryNsId);
|
||||||
|
|
Loading…
Reference in New Issue