Skip to content

Commit

Permalink
Fix for modern FML versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jun 8, 2024
1 parent fef75d0 commit 1fe9f89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ org.gradle.daemon=false
# Groovy
groovybundler_version=2.1.2

fml_version=3.0.23
fml_version=3.0.45
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1fe9f89

Please sign in to comment.