aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-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 c620c4c..bcade7e 100644
--- a/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
+++ b/src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt
@@ -473,7 +473,7 @@ internal class PsiMapper(
if ("target" != attribute.name) continue
val (value, signature) = attribute.resolvedLiteralValue ?: continue
val newSignature = remapMixinTarget(signature)
- if (newSignature != signature) {
+ if (newSignature != signature && valid(value)) {
replace(value, "\"$newSignature\"")
}
}