Skip to content

Commit

Permalink
Fix translating methods
Browse files Browse the repository at this point in the history
Signed-off-by: shedaniel <daniel@shedaniel.me>
  • Loading branch information
shedaniel committed Jan 28, 2021
1 parent f75b5b0 commit 6125269
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class QueryTranslateMethodCommand(private val source: Namespace, private val tar
val obfDesc = sourceMethod.getObfMergedDesc(sourceMappings)
val parentObfName = sourceClassParent.obfName.merged!!
val targetClass = targetMappings.getClassByObfName(parentObfName) ?: return@inner
val targetMethod = targetClass.methods.firstOrNull { it.obfName.merged == obfName && it.getObfServerDesc(targetMappings) == obfDesc } ?: return@inner
val targetMethod = targetClass.methods.firstOrNull { it.obfName.merged == obfName && it.getObfMergedDesc(targetMappings) == obfDesc } ?: return@inner
remappedMethods[MethodCompound(
sourceClassParent.optimumName.onlyClass() + "#" + sourceMethod.optimumName,
obfDesc
Expand Down

0 comments on commit 6125269

Please sign in to comment.