From 27b256d0ab4aaee38d27b3c8ea1d1c125ec20097 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Sat, 7 Dec 2024 22:47:29 +0800 Subject: [PATCH] Detect ScopedServiceFactory for 1.8 / 1.9 Loom --- src/main/kotlin/dev/architectury/plugin/loom/LoomInterface.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/dev/architectury/plugin/loom/LoomInterface.kt b/src/main/kotlin/dev/architectury/plugin/loom/LoomInterface.kt index e620259..902fa9e 100644 --- a/src/main/kotlin/dev/architectury/plugin/loom/LoomInterface.kt +++ b/src/main/kotlin/dev/architectury/plugin/loom/LoomInterface.kt @@ -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(