diff options
| author | Linnea Gräf <nea@nea.moe> | 2025-11-04 21:08:00 +0100 |
|---|---|---|
| committer | Linnea Gräf <nea@nea.moe> | 2025-11-04 21:08:00 +0100 |
| commit | 83a202d61fbe4a830bd8eee0bfa6d94a379e3d99 (patch) | |
| tree | afb5ae418cd0d1d7a32f3036bedb3d393a5771f7 /src/main/kotlin | |
| parent | 9428555deba85279a1bb843482c5fd7634fb8d63 (diff) | |
| download | Firmament-83a202d61fbe4a830bd8eee0bfa6d94a379e3d99.tar.gz Firmament-83a202d61fbe4a830bd8eee0bfa6d94a379e3d99.tar.bz2 Firmament-83a202d61fbe4a830bd8eee0bfa6d94a379e3d99.zip | |
fix: incorrect mod resource pack implementation causing issues with high contrast resourcepack
fixes https://github.com/nea89o/Firmament/issues/307
Diffstat (limited to 'src/main/kotlin')
| -rw-r--r-- | src/main/kotlin/repo/RepoModResourcePack.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/kotlin/repo/RepoModResourcePack.kt b/src/main/kotlin/repo/RepoModResourcePack.kt index 6868711..6c06a67 100644 --- a/src/main/kotlin/repo/RepoModResourcePack.kt +++ b/src/main/kotlin/repo/RepoModResourcePack.kt @@ -89,7 +89,9 @@ class RepoModResourcePack(val basePath: Path) : ModResourcePack { .asSequence() .map { it.relativeTo(basePath) } .forEach { - consumer.accept(Identifier.of("neurepo", it.toString()), InputSupplier.create(it)) + consumer.accept( + Identifier.tryParse("neurepo", it.toString()) ?: return@forEach, + InputSupplier.create(it)) } } |
