Skip to content

Commit

Permalink
Don't hardcode neoforge loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnuecke committed Apr 15, 2024
1 parent aaa78f9 commit dc92d16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ fabric-api = "0.97.0+1.20.4"
forge-platform = "1.20.4-49.0.41"

neoforge-platform = "20.4.227"
neoforge-loader = "2"

[plugins]
loom = { id = "dev.architectury.loom", version = "1.6-SNAPSHOT" }
Expand Down
2 changes: 2 additions & 0 deletions neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
val modId: String by project
val minecraftVersion: String = libs.versions.minecraft.get()
val neoforgeVersion: String = libs.versions.neoforge.platform.get()
val neoforgeLoaderVersion: String = libs.versions.neoforge.loader.get()
val architecturyVersion: String = libs.versions.architectury.get()

loom {
Expand All @@ -21,6 +22,7 @@ tasks {
val properties = mapOf(
"version" to project.version,
"minecraftVersion" to minecraftVersion,
"loaderVersion" to neoforgeLoaderVersion,
"neoforgeVersion" to neoforgeVersion,
"architecturyVersion" to architecturyVersion
)
Expand Down
2 changes: 1 addition & 1 deletion neoforge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader = "javafml"
loaderVersion = "[2,)"
loaderVersion = "[${loaderVersion},)"
issueTrackerURL = "https://github.com/MightyPirates/MarkdownManual/issues"
license = "MIT"

Expand Down

0 comments on commit dc92d16

Please sign in to comment.