From 83a202d61fbe4a830bd8eee0bfa6d94a379e3d99 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 4 Nov 2025 21:08:00 +0100 Subject: fix: incorrect mod resource pack implementation causing issues with high contrast resourcepack fixes https://github.com/nea89o/Firmament/issues/307 --- src/main/kotlin/repo/RepoModResourcePack.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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)) } } -- cgit