aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
diff options
context:
space:
mode:
authorJonas Herzig <me@johni0702.de>2019-12-07 12:07:23 +0100
committerJonas Herzig <me@johni0702.de>2019-12-07 12:07:23 +0100
commitec5bedf0458bec38c39290be85bafac0ea78f2ad (patch)
tree7c5bb2b60f15c62d286db83827ced97467928125 /src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
parent356541c5c2b279d29675e15a9098d5a21d399317 (diff)
downloadRemap-ec5bedf0458bec38c39290be85bafac0ea78f2ad.tar.gz
Remap-ec5bedf0458bec38c39290be85bafac0ea78f2ad.tar.bz2
Remap-ec5bedf0458bec38c39290be85bafac0ea78f2ad.zip
Remap string mixin target in `package.Outer.Inner` form (fixes #3)
Diffstat (limited to 'src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt')
-rw-r--r--src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt b/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
index e6b5f80..f999f8f 100644
--- a/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
+++ b/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
@@ -241,7 +241,7 @@ internal class PsiMapper(private val map: MappingSet, private val file: PsiFile)
val value = pair.value
if (value !is PsiLiteral) continue
val qualifiedName = value.value as? String ?: continue
- val mapping = map.findClassMapping(qualifiedName) ?: continue
+ val mapping = map.findPotentialInnerClassMapping(qualifiedName) ?: continue
val mapped = mapping.fullDeobfuscatedName?.replace('/', '.')
if (mapped != qualifiedName) {
replace(value, "\"$mapped\"")