Update tiny-remapper and enable "inferNameFromSameLvIndex" to fix issues with decompiling some locals.

dev/0.11
modmuss50 2021-10-14 17:04:40 +01:00
parent d8675e056b
commit c380b36739
2 changed files with 2 additions and 1 deletions

View File

@ -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'

View File

@ -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);