Skip to content

Commit 5668a7b

Browse files
committed
Fix mod id parsing from archive file
1 parent 21b7199 commit 5668a7b

File tree

1 file changed

+1
-1
lines changed
  • pacmc-common/src/commonMain/kotlin/net/axay/pacmc/common/data

1 file changed

+1
-1
lines changed

pacmc-common/src/commonMain/kotlin/net/axay/pacmc/common/data/ModFile.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ModFile(
1616
val fileName = path.name.removeSuffix(".pacmc.$extension")
1717

1818
val idPart = fileName.takeLastWhile { it != '_' }
19-
val repositoryPart = fileName.removeSuffix("_${idPart}")
19+
val repositoryPart = fileName.removeSuffix("_${idPart}").takeLastWhile { it != '_' }
2020

2121
return ModId(
2222
Repository.values().find { it.shortForm == repositoryPart } ?: return null,

0 commit comments

Comments
 (0)