From 117d1cf035edc83017e344a6142c40cd72420642 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Thu, 11 Nov 2021 21:22:12 +0100 Subject: Fix @At target in constant being duplicated if remapped twice --- src/main/kotlin/com/replaymod/gradle/remap/PsiMapper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/kotlin/com/replaymod/gradle') 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\"") } } -- cgit