Skip to content

Commit

Permalink
Avoid running check on dev mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
BluSpring committed Jul 11, 2024
1 parent 0c20e10 commit 723aa5b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ object KiltRemapper {
init {
srgIntermediaryMapping.classes.forEach {
it.methods.forEach m@{ f ->
val map = srgMappedMethods.computeIfAbsent(f.original) { mutableMapOf() }
val mapped = (mappingResolver.mapMethodName("intermediary", it.mapped.replace("/", "."), f.mapped, f.mappedDescriptor))

// otherwise FunctionalInterface methods don't get remapped properly???
if (!mapped.startsWith("method_"))
if (!f.mapped.startsWith("method_"))
return@m

val map = srgMappedMethods.computeIfAbsent(f.original) { mutableMapOf() }
val mapped = (mappingResolver.mapMethodName("intermediary", it.mapped.replace("/", "."), f.mapped, f.mappedDescriptor))

map[f.parent.original] = mapped
}
}
Expand Down

0 comments on commit 723aa5b

Please sign in to comment.