Skip to content

Commit

Permalink
Update implements to 1.21.5
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita51bot committed Jan 8, 2025
1 parent cf3ce8f commit d7e1aff
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 15 deletions.
29 changes: 15 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dependencies {
modImplementation "com.terraformersmc:modmenu:${prop("dep.modmenu")}"

// YACL
if (stonecutter.compare("1.20.1", mcVersion) != 1) {
if (true) {
def minecraftVersionsWithOldYACLMaven = Set.of("1.19.4", "1.20", "1.20.2", "1.20.3")
def yaclVersion = prop("dep.yacl")
if (minecraftVersionsWithOldYACLMaven.contains(mcVersion)) {
Expand All @@ -106,7 +106,7 @@ dependencies {

// Cloth Config
def clothConfigVersion = findProperty("dep.cloth-config")
modApi("me.shedaniel.cloth:cloth-config-fabric:${stonecutter.compare("1.19", mcVersion) == 1 ? clothConfigVersion : substringBefore(clothConfigVersion, "+")}") {
modApi("me.shedaniel.cloth:cloth-config-fabric:${false ? clothConfigVersion : substringBefore(clothConfigVersion, "+")}") {
exclude(group: "net.fabricmc.fabric-api")
}

Expand All @@ -126,7 +126,7 @@ dependencies {
}
}

if (!(stonecutter.compare("1.20.5", mcVersion) == 0)) {
if (!(false)) {
// Replay Mod
modImplementation("maven.modrinth:replaymod:${findProperty("dep.replaymod")}")
}
Expand Down Expand Up @@ -183,7 +183,7 @@ processResources {
props.put("minecraft", mcVersion.toString())
props.put("java", javaVersionAsInt.toString())
// props.put("fabric_api", substringBefore(prop("build.fabric_api").toString(), "+"))
props.put("fabric_api_id", stonecutter.compare("1.19.1", mcVersion) >= 0 ? "fabric" : "fabric-api")
props.put("fabric_api_id", false ? "fabric" : "fabric-api")

props.each { key, value ->
inputs.property key, value
Expand Down Expand Up @@ -520,16 +520,17 @@ UUID getUUID(Object uuid) {

@SuppressWarnings('GrMethodMayBeStatic') // Method cannot be static
int getJavaVersionAsInteger(String minecraftVersion) {
return stonecutter.compare("1.20.5", minecraftVersion) == 1 ?
stonecutter.compare("1.18", minecraftVersion) == 1 ?
stonecutter.compare("1.16.5", minecraftVersion) == 1 ?
8
:
16
:
17
:
21
return 21
// return stonecutter.compare("1.20.5", minecraftVersion) == 1 ?
// stonecutter.compare("1.18", minecraftVersion) == 1 ?
// stonecutter.compare("1.16.5", minecraftVersion) == 1 ?
// 8
// :
// 16
// :
// 17
// :
// 21
}

Properties getPersonalProperties() {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ lombok_version = 1.18.32

# Multi-Versions Properties
# Verified version: 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21
multi_versions = 1.16.5 1.17 1.17.1 1.18 1.18.1 1.18.2 1.19 1.19.1 1.19.2 1.19.3 1.19.4 1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 1.21.3 1.21.4
multi_versions = 1.21.3 1.21.4 25w02a

# Build Dependencies
build.yarn = [VERSIONED]
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/aws/25w02a.accesswidener
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
accessWidener v2 named
# 25w02a AW
16 changes: 16 additions & 0 deletions versions/25w02a/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Versioned Properties

# Fabric Properties, check https://fabricmc.net/develop/
build.yarn=25w02a+build.2
build.fabric_api=0.114.1+1.21.5

# Additional Dependencies Properties
# cloth-config, check https://modrinth.com/mod/cloth-config/versions?g=25w02a
dep.cloth-config=16.0.141+fabric
# modmenu, check https://modrinth.com/mod/modmenu/versions?g=1.21.4
dep.modmenu=13.0.0-beta.1
# yacl, check https://modrinth.com/mod/yacl/versions?g=1.21.4
dep.yacl=3.6.1+1.21.2-fabric
# replaymod, check https://modrinth.com/mod/replaymod/versions?g=1.21.4
dep.replaymod=1.21.2-2.6.20
dep.geckolib=unknown

0 comments on commit d7e1aff

Please sign in to comment.