Skip to content

Commit

Permalink
Minecraft 1.20.5 backport
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Jul 28, 2024
1 parent ecd7fd0 commit d387e5a
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 33 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ maven_group = juliand665
archives_name = dynamic-fps

# File naming version
minecraft_version = 1.21.0
minecraft_version = 1.20.5
# Version for publishing
minecraft_version_min = 1.21
minecraft_version_max = 1.21
minecraft_version_min = 1.20.5
minecraft_version_max = 1.20.6

enabled_platforms=fabric,neoforge,quilt
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[versions]
minecraft = "1.21"
minecraft = "1.20.5"

# Platform libraries

fabric_loader = "0.15.10"
fabric_api = "0.100.1+1.21"
fabric_api = "0.97.4+1.20.5"

forge = "1.20.4-49.0.30"

neoforge = "21.0.0-beta"
neoforge = "20.5.21-beta"

quilt_loader = "0.25.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

public class ResourceLocations {
public static ResourceLocation of(String namespace, String path) {
return ResourceLocation.fromNamespaceAndPath(namespace, path);
return new ResourceLocation(namespace, path);
}
}
8 changes: 2 additions & 6 deletions platforms/fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,11 @@ publishMods {
accessToken = providers.environmentVariable("CURSEFORGE_SECRET")
projectId = "335493"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

clientRequired = true
serverRequired = false
Expand All @@ -106,13 +104,11 @@ publishMods {
accessToken = providers.environmentVariable("MODRINTH_SECRET")
projectId = "LQ3K71Q1"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

requires("fabric-api")
optional("cloth-config", "modmenu")
Expand Down
5 changes: 4 additions & 1 deletion platforms/fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@
},
"depends": {
"fabricloader": ">=0.15.10",
"minecraft": ">=1.21.0-alpha.24.20.a",
"minecraft": [
"1.20.5",
"1.20.6"
],
"mixinextras": ">=0.3.2",
"fabric-resource-loader-v0": "*",
"fabric-lifecycle-events-v1": "*"
Expand Down
8 changes: 2 additions & 6 deletions platforms/forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@ publishMods {
accessToken = providers.environmentVariable("CURSEFORGE_SECRET")
projectId = "335493"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

clientRequired = true
serverRequired = false
Expand All @@ -104,13 +102,11 @@ publishMods {
accessToken = providers.environmentVariable("MODRINTH_SECRET")
projectId = "LQ3K71Q1"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

optional("cloth-config")
}
Expand Down
8 changes: 2 additions & 6 deletions platforms/neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ publishMods {
accessToken = providers.environmentVariable("CURSEFORGE_SECRET")
projectId = "335493"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

clientRequired = true
serverRequired = false
Expand All @@ -109,13 +107,11 @@ publishMods {
accessToken = providers.environmentVariable("MODRINTH_SECRET")
projectId = "LQ3K71Q1"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

optional("cloth-config")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ file="META-INF/accesstransformer.cfg"
[[dependencies.dynamic_fps]]
modId = "minecraft"
mandatory = true
versionRange = "[1.21.0,)"
versionRange = "[1.20.5,1.20.6]"
ordering = "NONE"
side = "CLIENT"

Expand Down
8 changes: 2 additions & 6 deletions platforms/quilt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,11 @@ publishMods {
accessToken = providers.environmentVariable("CURSEFORGE_SECRET")
projectId = "335493"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

clientRequired = true
serverRequired = false
Expand All @@ -107,13 +105,11 @@ publishMods {
accessToken = providers.environmentVariable("MODRINTH_SECRET")
projectId = "LQ3K71Q1"

/*
minecraftVersionRange {
start = project.property("minecraft_version_min").toString()
end = project.property("minecraft_version_max").toString()
}
*/
minecraftVersions.add(project.property("minecraft_version_min").toString())
// minecraftVersions.add(project.property("minecraft_version_min").toString())

requires("qsl")
optional("cloth-config", "modmenu")
Expand Down

0 comments on commit d387e5a

Please sign in to comment.