diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/CustomEmojiFont.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/CustomEmojiFont.kt index 77fbcfb3..a468cd10 100644 --- a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/CustomEmojiFont.kt +++ b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/CustomEmojiFont.kt @@ -10,7 +10,7 @@ private var cacheFontPath: String? = null fun getCustomEmojiFontPath( context: ModContext ): String? { - val customFileName = context.config.experimental.nativeHooks.customEmojiFont.getNullable() ?: return null + val customFileName = context.config.experimental.nativeHooks.customEmojiFont.getNullable()?.takeIf { it.isNotBlank() } ?: return null if (cacheFontPath == null) { cacheFontPath = runCatching { context.bridgeClient.getFileHandlerManager().getFileHandleLocalPath(