Skip to content

Commit

Permalink
Change 1.20.3/1.20.4 version to build on 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Dec 7, 2023
1 parent acbc044 commit 0f863b4
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ repositories {
}

preprocess {
val fabric12003 = createNode("1.20.3-fabric", 1_20_03, "yarn")
val neoforge12003 = createNode("1.20.3-neoforge", 1_20_03, "yarn")
val fabric12004 = createNode("1.20.4-fabric", 1_20_04, "yarn")
val neoforge12004 = createNode("1.20.4-neoforge", 1_20_04, "yarn")
val fabric12002 = createNode("1.20.2-fabric", 1_20_02, "yarn")
val neoforge12002 = createNode("1.20.2-neoforge", 1_20_02, "yarn")
val fabric12001 = createNode("1.20.1-fabric", 1_20_01, "yarn")
Expand All @@ -26,8 +26,8 @@ preprocess {
val forge11605 = createNode("1.16.5-forge", 1_16_05, "srg")
val fabric11601 = createNode("1.16.1-fabric", 1_16_01, "yarn")

fabric12003.link(neoforge12003)
neoforge12003.link(neoforge12002)
fabric12004.link(neoforge12004)
neoforge12004.link(neoforge12002)
neoforge12002.link(fabric12002)
fabric12002.link(fabric12001)
fabric12001.link(forge12001)
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ listOf(
"1.20.1-fabric",
"1.20.2-neoforge",
"1.20.2-fabric",
"1.20.3-neoforge",
"1.20.3-fabric",
"1.20.4-neoforge",
"1.20.4-fabric",
).forEach { version ->
include(":$version")
project(":$version").apply {
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ side = "BOTH"
[[dependencies.world_host]]
modId = "minecraft"
mandatory = true
versionRange = "$mc_version"
##if MC == 1.20.1
#?? versionRange = "[1.20,1.20.2)"
##elseif MC == 1.20.4
versionRange = "[1.20.3,1.20.5)"
##else
#?? versionRange = "$mc_version"
##endif
ordering = "NONE"
side = "BOTH"
4 changes: 3 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
//?? "minecraft": ">=1.19.4 <1.20",
//#elseif MC == 1.20.1
//?? "minecraft": ">=1.20- <1.20.2",
//#elseif MC == 1.20.4
"minecraft": ">=1.20.3- <1.20.5",
//#else
"minecraft": "$mc_version",
//?? "minecraft": "$mc_version",
//#endif
"fabric-resource-loader-v0": "*"
},
Expand Down
8 changes: 4 additions & 4 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ unimined.minecraft {
isNeoForge -> neoForged {
loader(when (mcVersion) {
1_20_02 -> "86"
1_20_03 -> "1-beta"
1_20_04 -> "2-beta"
else -> throw IllegalStateException("Unknown NeoForge version for $mcVersionString")
})
minecraftRemapper.config {
Expand Down Expand Up @@ -223,7 +223,7 @@ dependencies {

if (isFabric) {
when (mcVersion) {
1_20_03 -> "9.0.0-pre.1" // TODO: Update out of pre
1_20_04 -> "9.0.0-pre.1" // TODO: Update out of pre
1_20_02 -> "8.0.0"
1_20_01 -> "7.2.2"
1_19_04 -> "6.3.1"
Expand All @@ -247,7 +247,7 @@ dependencies {

if (isFabric) {
when (mcVersion) {
1_20_03 -> "0.91.1+1.20.3"
1_20_04 -> "0.91.1+1.20.3"
1_20_02 -> "0.91.1+1.20.2"
1_20_01 -> "0.91.0+1.20.1"
1_19_04 -> "0.87.2+1.19.4"
Expand Down Expand Up @@ -325,7 +325,7 @@ modrinth {
when (mcVersion) {
1_19_04 -> "23w13a_or_b"
1_20_01 -> "1.20"
1_20_03 -> "1.20.4" // TODO: Invert this when 1.20.4 is buildable
1_20_04 -> "1.20.3"
else -> null
}?.let(gameVersions::add)
loaders.add(loaderName)
Expand Down
2 changes: 1 addition & 1 deletion versions/mainProject
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.20.3-fabric
1.20.4-fabric

0 comments on commit 0f863b4

Please sign in to comment.