aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-11-04 21:08:00 +0100
committerLinnea Gräf <nea@nea.moe>2025-11-04 21:08:00 +0100
commit83a202d61fbe4a830bd8eee0bfa6d94a379e3d99 (patch)
treeafb5ae418cd0d1d7a32f3036bedb3d393a5771f7 /src/main/kotlin
parent9428555deba85279a1bb843482c5fd7634fb8d63 (diff)
downloadFirmament-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.kt4
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))
}
}