Skip to content

Commit c39e343

Browse files
committed
Only mark as fabric project if fabric loader is present in the libraries
1 parent e32a4a9 commit c39e343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/demonwav/mcdev/platform/fabric/framework/FabricPresentationProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class FabricPresentationProvider : LibraryPresentationProvider<LibraryVersionPro
2727
runCatching {
2828
val jar = JarFile(classesRoot.localFile)
2929
val isFabricLib = jar.entries().asSequence().any {
30-
it.name.startsWith("net/fabricmc/") && it.name.endsWith(".class")
30+
it.name == "net/fabricmc/loader/api/FabricLoader.class"
3131
}
3232
if (isFabricLib) {
3333
return LibraryVersionProperties()

0 commit comments

Comments
 (0)