Skip to content

Commit 8a962bc

Browse files
committed
26.1 neoforge port
1 parent 20c7fbe commit 8a962bc

5 files changed

Lines changed: 20 additions & 10 deletions

File tree

build.gradle.kts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ val compatibleMcVersion = VersionDefinition(
9191
"1.21.8" to VersionRange("1.21.6", "1.21.8", name = "1.21.8"),
9292
"1.21.10" to VersionRange("1.21.9", "1.21.10", name = "1.21.10"),
9393
"1.21.11" to VersionRange("1.21.11", "1.21.11", name = "1.21.11"),
94-
"26.1" to VersionRange("26.1", "26.1", exclusiveUpperBound = "26.2", name = "26.1")
94+
"26.1.2" to VersionRange("26.1", "26.1", exclusiveUpperBound = "26.2", name = "26.1")
9595
)
9696
val javaVersion = VersionDefinition(
9797
"1.20.1" to "17",
98-
"26.1" to "25",
98+
"26.1.2" to "25",
9999
default = "21",
100100
)
101101
val parchmentVersion = VersionDefinition(
@@ -113,7 +113,7 @@ val fabricApiVersion = VersionDefinition(
113113
"1.21.8" to "0.129.0+1.21.8",
114114
"1.21.10" to "0.136.0+1.21.10",
115115
"1.21.11" to "0.139.4+1.21.11",
116-
"26.1" to "0.143.14+26.1",
116+
"26.1.2" to "0.150.0+26.1.2",
117117
)
118118
val modMenuVersion = VersionDefinition(
119119
"1.20.1" to "7.2.2",
@@ -123,13 +123,14 @@ val modMenuVersion = VersionDefinition(
123123
"1.21.8" to "15.0.0",
124124
"1.21.10" to "16.0.0-rc.1",
125125
"1.21.11" to "17.0.0-alpha.1",
126-
"26.1" to "18.0.0-alpha.6",
126+
"26.1.2" to "18.0.0-alpha.6",
127127
)
128128
val neoForgeVersion = VersionDefinition(
129129
"1.21.1" to "21.1.95",
130130
"1.21.4" to "21.4.124",
131131
"1.21.5" to "21.5.95",
132132
"1.21.8" to "21.8.49",
133+
"26.1.2" to "26.1.2.73"
133134
)
134135
val minimumNeoForgeVersion = VersionDefinition(
135136
// We need this version or higher on 1.21.4, on other versions we don't care
@@ -148,13 +149,20 @@ val kotlinForForgeVersion = VersionDefinition(
148149
"1.21.4" to "5.7.0",
149150
"1.21.5" to "5.7.0",
150151
"1.21.8" to "5.9.0",
152+
"26.1.2" to "6.2.0",
151153
)
152154
val universalVersion = VersionDefinition(
153155
"1.21.1" to "1.21",
154156
"1.21.8" to "1.21.7",
155157
"1.21.10" to "1.21.9",
158+
"26.1.2" to "26.1",
156159
default = mcPlatform.versionString
157-
).let { VersionDefinition(default = "${it.get(mcPlatform)}-${mcPlatform.loaderString}:499") }
160+
).let {
161+
VersionDefinition(
162+
"26.1.2-neoforge" to "26.1-fabric:499",
163+
default = "${it.get(mcPlatform)}-${mcPlatform.loaderString}:499"
164+
)
165+
}
158166

159167
dependencies {
160168
minecraft("com.mojang:minecraft:${mcVersion.get(mcPlatform)}")
@@ -288,6 +296,7 @@ tasks {
288296
configurations = listOf(shade, shadeModImplementation)
289297
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
290298

299+
if (!mcPlatform.isFabric) exclude("fabric.mod.json")
291300
mergeServiceFiles()
292301
relocate("gg.essential.universal", "dev.dediamondpro.resourcify.libs.universal")
293302
relocate("gg.essential.elementa", "dev.dediamondpro.resourcify.libs.elementa")

buildSrc/src/main/java/dev/dediamondpro/buildsource/VersionRange.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class VersionRange(
4646
if (allowAll) return "[1,)"
4747
return buildString {
4848
append("[$startVersion,")
49-
if (!openEnd && exclusiveUpperBound != null) append("$exclusiveUpperBound[")
49+
if (!openEnd && exclusiveUpperBound != null) append("$exclusiveUpperBound)")
5050
else if (!openEnd) append("$endVersion]")
5151
else append(")")
5252
}

settings.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ val platforms = listOf(
4848
"1.21.8-fabric",
4949
"1.21.10-fabric",
5050
"1.21.11-fabric",
51-
"26.1-fabric",
51+
"26.1.2-neoforge",
52+
"26.1.2-fabric",
5253
)
5354

5455
stonecutter {
@@ -58,7 +59,7 @@ stonecutter {
5859
for (version in platforms) {
5960
version(version, version.split('-')[0])
6061
}
61-
vcsVersion = "26.1-fabric"
62+
vcsVersion = "26.1.2-fabric"
6263
}
6364
}
6465

src/main/kotlin/dev/dediamondpro/resourcify/Constants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ import org.slf4j.LoggerFactory
2323
object Constants {
2424
const val NAME = /*$ mod_name*/ "Resourcify"
2525
const val ID = /*$ mod_id*/ "resourcify"
26-
const val VERSION = /*$ mod_version*/ "1.8.1"
26+
const val VERSION = /*$ mod_version*/ "1.8.2"
2727
val LOGGER: Logger = LoggerFactory.getLogger(NAME)
2828
}

stonecutter.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ plugins {
1919
id("dev.kikugie.stonecutter")
2020
alias(libs.plugins.arch.loom) apply false
2121
}
22-
stonecutter active "26.1-fabric" /* [SC] DO NOT EDIT */
22+
stonecutter active "26.1.2-fabric" /* [SC] DO NOT EDIT */
2323

2424
stonecutter tasks {
2525
val ordering = versionComparator.thenComparingInt {

0 commit comments

Comments
 (0)