aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))
}
}