From 28786b0947bfa6a483f94f1b36236fa6cc1ae63a Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Fri, 15 Sep 2023 09:26:49 -0700 Subject: [PATCH] use ceilingEntry instead of higherEntry for line mappings we want to include & prioritize exact matches --- .../src/main/kotlin/io/papermc/paperweight/tasks/LineMapJar.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/LineMapJar.kt b/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/LineMapJar.kt index d0230359..3a3bdc03 100644 --- a/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/LineMapJar.kt +++ b/paperweight-lib/src/main/kotlin/io/papermc/paperweight/tasks/LineMapJar.kt @@ -168,7 +168,7 @@ private class LineMappingVisitor( override fun visitLineNumber(line: Int, start: Label?) { var mapped = lineMapping[line] if (mapped == null) { - val entry = lineMapping.higherEntry(line) + val entry = lineMapping.ceilingEntry(line) if (entry != null) { mapped = entry.value }