Detect ScopedServiceFactory for 1.8 / 1.9 Loom

This commit is contained in:
shedaniel
2024-12-07 22:47:29 +08:00
parent 5c3703c0a9
commit 27b256d0ab

View File

@@ -26,6 +26,9 @@ interface LoomInterface {
}
return useIfFound(
"net.fabricmc.loom.util.service.ScopedServiceFactory",
"dev.architectury.plugin.loom.LoomInterface11" // 1.8
) ?: useIfFound(
"net.fabricmc.loom.util.service.ScopedSharedServiceManager",
"dev.architectury.plugin.loom.LoomInterface11" // 1.1
) ?: useIfFound(