Skip to content

Commit

Permalink
Additional param
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Dec 13, 2023
1 parent fe289c9 commit 22f550d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ configurations {
}

dependencies {
forge "net.minecraftforge:forge:${rootProject.minecraft_version}-${rootProject.forge_version}"
forge "net.minecraftforge:forge:${rootProject.forge_mc_version}-${rootProject.forge_version}"

common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionForge")) { transitive = false }
Expand All @@ -55,6 +55,7 @@ processResources {
inputs.property "modDescription", rootProject.mod_description
inputs.property "modAuthor", rootProject.mod_author
inputs.property "minecraftVersion", rootProject.minecraft_version
inputs.property "forgeMcVersion", rootProject.forge_mc_version
inputs.property "forgeVersion", rootProject.forge_version

filesMatching("META-INF/mods.toml") {
Expand All @@ -64,6 +65,7 @@ processResources {
"modDescription": rootProject.mod_description,
"modAuthor": rootProject.mod_author,
"minecraftVersion": rootProject.minecraft_version,
"forgeMcVersion": rootProject.forge_mc_version,
"forgeVersion": rootProject.forge_version
}
}
Expand Down
2 changes: 1 addition & 1 deletion forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ versionRange = "[${forgeVersion},)"
[[dependencies.${ modId }]]
modId = "minecraft"
mandatory = true
versionRange = "[${minecraftVersion},)"
versionRange = "[${forgeMcVersion},)"

[modproperties.${ modId }]
catalogueImageIcon = "catalogue_icon.png"
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ fabric_loader_version=0.15.1
fabric_api_version=0.77.0+1.19.2

# Forge https://files.minecraftforge.net/net/minecraftforge/forge
forge_mc_version=1.19.2
forge_version=43.3.5

0 comments on commit 22f550d

Please sign in to comment.