Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare cloth config as a dependency #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ group = maven_group
val minecraft_version: String by project
val loader_version: String by project
val fabric_kotlin_version: String by project
val cloth_config_version: String by project

repositories {
mavenCentral()
Expand All @@ -37,7 +38,6 @@ dependencies {
modImplementation("net.fabricmc.fabric-api:fabric-api:$fabric_version")
modImplementation("net.fabricmc:fabric-language-kotlin:$fabric_kotlin_version")

val cloth_config_version: String by project
modApi("me.shedaniel.cloth:cloth-config-fabric:$cloth_config_version")

val mod_menu_version: String by project
Expand All @@ -60,6 +60,7 @@ tasks {
"minecraft_version" to minecraft_version,
"loader_version" to loader_version,
"fabric_kotlin_version" to fabric_kotlin_version,
"cloth_config_version" to cloth_config_version
)
)
}
Expand Down Expand Up @@ -94,4 +95,5 @@ modrinth {
loaders.addAll("fabric", "quilt")
changelog.set(rootProject.file("changelog.md").readText())
syncBodyFrom.set(rootProject.file("README.md").readText())
required.project("cloth-config")
}
2 changes: 1 addition & 1 deletion src/main/kotlin/me/iru/timedisplay/TimeUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ object TimeUtils {
if(TimeDisplay.config.twelveClockMode) {
"Ingame Time (${String.format("%02d", hour % 12)}:${String.format("%02d", min)}:${String.format("%02d", sec)} ${if(hour > 12) "PM" else "AM"})"
} else {
"Ingame Time (${String.format("%02d", hour)}:${String.format("%02d", min)}:${String.format("%02d", sec)} )"
"Ingame Time (${String.format("%02d", hour)}:${String.format("%02d", min)}:${String.format("%02d", sec)})"
}
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"fabric": "*",
"fabric-language-kotlin": ">=${fabric_kotlin_version}",
"minecraft": ">=${minecraft_version}",
"java": ">=17"
"java": ">=17",
"cloth-config": ">=${cloth_config_version}"
},
"custom": {
"modmenu": {
Expand Down