From 723aa5be7dd25799a3422affdc142677c84a29e3 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 11 Jul 2024 14:10:54 +0800 Subject: [PATCH] Avoid running check on dev mapping --- .../xyz/bluspring/kilt/loader/remap/KiltRemapper.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/xyz/bluspring/kilt/loader/remap/KiltRemapper.kt b/src/main/kotlin/xyz/bluspring/kilt/loader/remap/KiltRemapper.kt index b6381217..d55f9a9b 100644 --- a/src/main/kotlin/xyz/bluspring/kilt/loader/remap/KiltRemapper.kt +++ b/src/main/kotlin/xyz/bluspring/kilt/loader/remap/KiltRemapper.kt @@ -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 } }