Skip to content

Commit

Permalink
Added clothconfig as a dependency (Yes, i forgot to do i earlier)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMasrozYTLIVE committed Jul 31, 2024
1 parent f1c9946 commit 16ca515
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
19 changes: 13 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ repositories {
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
maven { url "https://maven.shedaniel.me/" }
maven { url "https://maven.terraformersmc.com/releases"}
maven { url "https://maven.fabricmc.net/"}
maven { url "https://maven.terraformersmc.com/releases" }
maven { url "https://maven.fabricmc.net/" }
maven { url = "https://api.modrinth.com/maven" }
}

dependencies {
Expand All @@ -39,7 +40,7 @@ dependencies {

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modApi("me.shedaniel.cloth:cloth-config-fabric:15.0.128") {
modApi("me.shedaniel.cloth:cloth-config-fabric:${clothconfig_version}") {
exclude(group: "net.fabricmc.fabric-api")
}
modImplementation "com.terraformersmc:modmenu:11.0.1"
Expand All @@ -48,15 +49,21 @@ dependencies {

compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'

}

processResources {
inputs.property "version", project.version
def expandProps = [
"version": project.version,
"loader_version": loader_version,
"minecraft_version": minecraft_version,
"clothconfig_version": clothconfig_version
]

filesMatching("fabric.mod.json") {
expand "version": project.version
expand expandProps
}

inputs.properties(expandProps)
}

tasks.withType(JavaCompile).configureEach {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ archives_base_name = ctp-mod

# Dependencies
fabric_version=0.100.7+1.21
clothconfig_version=15.0.128

github_repo_owner=MrMasrozYTLIVE
github_repo=CatTeleportMod-Fabric
Expand Down
1 change: 0 additions & 1 deletion src/main/java/net/just_s/ctpmod/CTPMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayConnectionEvents;
import net.fabricmc.loader.api.FabricLoader;
import net.just_s.ctpmod.config.KeyBind;
import net.just_s.ctpmod.config.ModConfig;
import net.just_s.ctpmod.config.Point;
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
},

"depends": {
"fabricloader": ">=0.15",
"fabricloader": ">=${loader_version}",
"fabric": "*",
"minecraft": "1.21",
"java": ">=21"
"minecraft": ">=${minecraft_version}",
"java": ">=21",
"cloth-config": ">=${clothconfig_version}"
}
}

0 comments on commit 16ca515

Please sign in to comment.