Skip to content

Commit

Permalink
chore: separate dep version from required dep version for neoforge/fa…
Browse files Browse the repository at this point in the history
…bric
  • Loading branch information
desht committed Jul 31, 2024
1 parent a428e3d commit 406506d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ processResources {
filesMatching("fabric.mod.json") {
expand "version": project.version,
"archversion": project.architectury_version,
"fabricapiversion": project.fabric_api_version,
"fabricapiversionrange": project.fabric_api_version_range,
"mcversion": project.minecraft_version
}
}
Expand Down
2 changes: 1 addition & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"ftblibrary-fabric.mixins.json"
],
"depends": {
"fabric": ">=${fabricapiversion}",
"fabric": "${fabricapiversionrange}",
"minecraft": "~${mcversion}",
"architectury": ">=${archversion}"
}
Expand Down
4 changes: 3 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ minecraft_version=1.21
# Deps
forge_version=49.0.31
neoforge_version=21.0.146
neoforge_version_range=[21.0.143,)
neoforge_loader_version=4
fabric_loader_version=0.15.11
fabric_api_version=0.100.1+1.21
fabric_api_version=0.100.8+1.21
fabric_api_version_range=>=0.100.1+1.21

architectury_version=13.0.2

Expand Down
2 changes: 1 addition & 1 deletion neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ processResources {
filesMatching("META-INF/neoforge.mods.toml") {
expand "version": project.version,
"archversion": project.architectury_version,
"neoforgeversion": project.neoforge_version,
"neoforgeversionrange": project.neoforge_version_range,
"neoforgeloaderversion": project.neoforge_loader_version,
"mcversion": project.minecraft_version
}
Expand Down
2 changes: 1 addition & 1 deletion neoforge/src/main/resources/META-INF/neoforge.mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ FTB Library adds nothing.
[[dependencies.ftblibrary]]
modId = "neoforge"
type = "required"
versionRange = "[${neoforgeversion},)"
versionRange = "${neoforgeversionrange}"
ordering = "NONE"
side = "BOTH"

Expand Down

0 comments on commit 406506d

Please sign in to comment.