From 55a54404ca456148ed852f0acfd43398e0466305 Mon Sep 17 00:00:00 2001 From: Wagyourtail Date: Thu, 25 Jul 2024 13:41:51 -0500 Subject: [PATCH] fix descriptors using `.` in AT --- .../xyz/wagyourtail/unimined/mapping/formats/at/ATReader.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/xyz/wagyourtail/unimined/mapping/formats/at/ATReader.kt b/src/commonMain/kotlin/xyz/wagyourtail/unimined/mapping/formats/at/ATReader.kt index 9a70f21..f0bbcb7 100644 --- a/src/commonMain/kotlin/xyz/wagyourtail/unimined/mapping/formats/at/ATReader.kt +++ b/src/commonMain/kotlin/xyz/wagyourtail/unimined/mapping/formats/at/ATReader.kt @@ -125,7 +125,7 @@ object ATReader : FormatReader { val targetClass = InternalName.read(input.takeUntil { it.isWhitespace() }.replace(".", "/")) input.takeNonNewlineWhitespace() val memberName = if (input.peek() == '#') null else input.takeUntil { it.isWhitespace() || it == '(' }.ifEmpty { null } - val memberDesc = if (memberName == null) null else input.takeUntil { it.isWhitespace() }.ifEmpty { null } + val memberDesc = if (memberName == null) null else input.takeUntil { it.isWhitespace() }.ifEmpty { null }?.replace(".", "/") val remaining = input.takeLine().trimStart() if (remaining.isNotEmpty() && remaining.first() != '#') {