fix: custom emoji font

This commit is contained in:
rhunk
2024-06-01 16:17:14 +02:00
parent 6105429a2a
commit cd04fd0477

View File

@ -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(