diff --git a/build.gradle b/build.gradle index 407a75b..14e2f51 100644 --- a/build.gradle +++ b/build.gradle @@ -139,7 +139,7 @@ runs { } dependencies { - minecraft "net.neoforged:neoforge:20.6.42-beta" + minecraft "net.neoforged:neoforge:20.6.113-beta" transformCompileOnly(sourceSets.main.output) compileOnly(testCompileOnly(sourceSets.extension.output)) diff --git a/gradle.properties b/gradle.properties index b057ab8..72e2dae 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ org.gradle.daemon=false # Groovy groovybundler_version=2.1.2 -fml_version=3.0.23 +fml_version=3.0.45 diff --git a/src/main/groovy/org/groovymc/gml/internal/GMLLangLoader.groovy b/src/main/groovy/org/groovymc/gml/internal/GMLLangLoader.groovy index f79569a..f9b111d 100644 --- a/src/main/groovy/org/groovymc/gml/internal/GMLLangLoader.groovy +++ b/src/main/groovy/org/groovymc/gml/internal/GMLLangLoader.groovy @@ -13,6 +13,7 @@ import net.neoforged.fml.ModLoadingIssue import net.neoforged.fml.common.Mod import net.neoforged.fml.javafmlmod.AutomaticEventSubscriber import net.neoforged.fml.loading.FMLLoader +import net.neoforged.fml.loading.JarVersionLookupHandler import net.neoforged.fml.loading.modscan.ModAnnotation import net.neoforged.neoforgespi.IIssueReporting import net.neoforged.neoforgespi.language.IModInfo @@ -37,6 +38,11 @@ final class GMLLangLoader implements IModLanguageLoader { return 'gml' } + @Override + String version() { + return JarVersionLookupHandler.getVersion(this.getClass()).orElse(null) + } + @Override ModContainer loadMod(IModInfo info, ModFileScanData modFileScanData, ModuleLayer moduleLayer) throws ModLoadingException { // TODO: re-enable script mods