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

This commit is contained in:
modmuss50 2021-10-14 17:02:56 +01:00
parent 5b9509d95b
commit f8089985bd
1 changed files with 3 additions and 1 deletions

View File

@ -12,7 +12,7 @@ buildscript {
classpath "net.fabricmc:stitch:${project.stitch_version}"
classpath "commons-io:commons-io:2.8.0"
classpath 'de.undercouch:gradle-download-task:4.1.1'
classpath 'net.fabricmc:tiny-remapper:0.6.0'
classpath 'net.fabricmc:tiny-remapper:0.7.0'
classpath "net.fabricmc.unpick:unpick:${project.unpick_version}"
classpath "net.fabricmc.unpick:unpick-format-utils:${project.unpick_version}"
classpath "net.fabricmc:name-proposal:${project.name_proposal_version}"
@ -1011,6 +1011,8 @@ void mapJar(File output, File input, File mappings, File libraries, String from,
.renameInvalidLocals(true)
.rebuildSourceFilenames(true)
.invalidLvNamePattern(~/\$\$\d+/)
.inferNameFromSameLvIndex(true)
action.execute(remapperBuilder)
def remapper = remapperBuilder
.build()