Skip to content

Commit bd3ec9a

Browse files
committed
Removed warnings
1 parent e4789ae commit bd3ec9a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

common/src/main/kotlin/com/lambda/config/Configuration.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ abstract class Configuration : Jsonable {
8080
lambdaScope.launch(Dispatchers.IO) {
8181
runCatching { load(primary) }
8282
.onSuccess {
83-
LOG.info("[IO] Config Manager: ${configName.capitalize()} config loaded.")
83+
LOG.info("[IO] Config Manager: ${configName.replaceFirstChar(Char::titlecase) }} config loaded.")
8484
}
8585
.onFailure { LOG.error("Failed to load $configName config, loading backup", it) }
8686
.recoverCatching {
@@ -106,4 +106,4 @@ abstract class Configuration : Jsonable {
106106
}
107107
}
108108

109-
}
109+
}

common/src/main/kotlin/com/lambda/util/Communication.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ object Communication {
7272

7373
if (this@source is Nameable) {
7474
styled(color, italic = true, underlined = true) {
75-
literal(name.capitalize())
75+
literal(name.replaceFirstChar(Char::titlecase))
7676
}
7777
}
7878

7979
styled(color, italic = true) {
8080
literal(" \$ ")
8181
}
8282
}
83-
83+
8484
private fun LogLevel.prefix() =
8585
buildText {
8686
literal(" ")
@@ -105,4 +105,4 @@ object Communication {
105105
}
106106
}
107107
}
108-
}
108+
}

quilt/src/main/kotlin/com/lambda/fabric/LoaderInfoImpl.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:Suppress("deprecation")
2+
13
package com.lambda.fabric
24

35
import net.fabricmc.loader.api.FabricLoader
@@ -8,4 +10,4 @@ object LoaderInfoImpl {
810
FabricLoader.getInstance()
911
.getModContainer("lambda").orElseThrow()
1012
.metadata.version.friendlyString
11-
}
13+
}

0 commit comments

Comments
 (0)