We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 196d6b9 commit 9e21a2fCopy full SHA for 9e21a2f
src/main/kotlin/util/psi-utils.kt
@@ -377,7 +377,7 @@ private fun Module.findMcpModule(): McpModule? {
377
val PsiElement.mcVersion: SemanticVersion?
378
get() = this.cached {
379
findMcpModule()?.let {
380
- SemanticVersion.parse(it.getSettings().minecraftVersion ?: return@let null)
+ SemanticVersion.tryParse(it.getSettings().minecraftVersion ?: return@let null)
381
}
382
383
0 commit comments