Skip to content

Commit a6b04ba

Browse files
committed
fixed 'hostname-override' not saving in default config
1 parent cdfcf0a commit a6b04ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/me/apyr/chatemotes/ChatEmotesSettings.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ChatEmotesSettings(private val plugin: JavaPlugin) {
2222
fun resourcePackPrompt(): String = config.getString("emote-provider.local.pack.height")!!
2323
fun resourcePackHeight(): Int = config.getInt("emote-provider.local.pack.height")
2424
fun resourcePackAscent(): Int = config.getInt("emote-provider.local.pack.ascent")
25-
fun hostnameOverride(): String? = config.getString("emote-provider.local.hostname-override")
25+
fun hostnameOverride(): String? = config.getString("emote-provider.local.hostname-override")?.ifEmpty { null }
2626
fun httpPort(): Int = config.getInt("emote-provider.local.http.port")
2727

2828
// remote

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ emote-provider:
2525
ascent: 8
2626

2727
# minecraft server hostname override (set to disable auto detection)
28-
hostname-override: null
28+
hostname-override: ''
2929

3030
# resource pack server
3131
http.port: 25765

0 commit comments

Comments
 (0)