diff --git a/projects/neoforge/build.gradle b/projects/neoforge/build.gradle index eec6628f09..a93c5c58ac 100644 --- a/projects/neoforge/build.gradle +++ b/projects/neoforge/build.gradle @@ -429,6 +429,17 @@ dependencies { } } +processResources { + inputs.property("version", project.version) + filesMatching("META-INF/neoforge.mods.toml") { + expand([ + "global": [ + "neoForgeVersion": project.version + ] + ]) + } +} + afterEvaluate { artifacts { modDevBundle(userdevJar) {