Skip to content

Commit

Permalink
fix mods.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Sep 3, 2024
1 parent 4643203 commit e93880d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ subprojects {
"fabric_loader_version" to "fabric_loader_version"(),
"forge_version" to "forge_version"().split(".")[0], // only specify major version of forge
"create_forge_version" to "create_forge_version"().split("-")[0], // cut off build number
"create_fabric_version" to "create_fabric_version"().split("+")[0] // Trim +mcX.XX.X from version string
"create_fabric_version" to "create_fabric_version"()
)

inputs.properties(properties)
Expand Down
4 changes: 2 additions & 2 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ side = "BOTH"
[[dependencies.numismatics]]
modId = "minecraft"
mandatory = true
versionRange = "${minecraft_version}"
versionRange = "[${minecraft_version}]"
ordering = "NONE"
side = "BOTH"

[[dependencies.numismatics]]
modId="create"
mandatory=true
versionRange="${create_forge_version}"
versionRange="[${create_forge_version},)"
ordering="NONE"
side="BOTH"
18 changes: 18 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Numismatics
* Copyright (c) 2024 The Railways Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

pluginManagement {
repositories {
maven("https://maven.fabricmc.net/")
Expand Down

0 comments on commit e93880d

Please sign in to comment.