mirror of
https://github.com/jie65535/mirai-console-jcf-plugin.git
synced 2025-06-02 17:39:15 +08:00
修复作者、logo可能为空问题
This commit is contained in:
parent
a9e45470fa
commit
3bac45c052
@ -109,7 +109,7 @@ class MessageHandler(
|
||||
val selectedMod = handlePagedList(pagedList) { mod ->
|
||||
PlainText(
|
||||
"""
|
||||
[${mod.name}] by ${mod.authors[0].name}
|
||||
[${mod.name}] by ${mod.authors.firstOrNull()?.name}
|
||||
${formatCount(mod.downloadCount)} Downloads Updated ${mod.dateModified.toLocalDate()}
|
||||
${mod.summary}
|
||||
${mod.links.websiteUrl}
|
||||
|
@ -77,7 +77,7 @@ class Mod(
|
||||
/**
|
||||
* The mod's logo asset
|
||||
*/
|
||||
val logo: ModAsset,
|
||||
val logo: ModAsset?,
|
||||
|
||||
/**
|
||||
* List of screenshots assets
|
||||
|
Loading…
Reference in New Issue
Block a user