mirror of
https://github.com/jie65535/mirai-console-jcf-plugin.git
synced 2026-10-30 13:42:12 +08:00
修复作者、logo可能为空问题
This commit is contained in:
1 parent
a9e45470fa
commit
3bac45c052
2 files changed
+2
-2
No files matched your search
@@ -109,7 +109,7 @@ class MessageHandler(
|
|||||||
val selectedMod = handlePagedList(pagedList) { mod ->
|
val selectedMod = handlePagedList(pagedList) { mod ->
|
||||||
PlainText(
|
PlainText(
|
||||||
"""
|
"""
|
||||||
[${mod.name}] by ${mod.authors[0].name}
|
[${mod.name}] by ${mod.authors.firstOrNull()?.name}
|
||||||
${formatCount(mod.downloadCount)} Downloads Updated ${mod.dateModified.toLocalDate()}
|
${formatCount(mod.downloadCount)} Downloads Updated ${mod.dateModified.toLocalDate()}
|
||||||
${mod.summary}
|
${mod.summary}
|
||||||
${mod.links.websiteUrl}
|
${mod.links.websiteUrl}
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ class Mod(
|
|||||||
/**
|
/**
|
||||||
* The mod's logo asset
|
* The mod's logo asset
|
||||||
*/
|
*/
|
||||||
val logo: ModAsset,
|
val logo: ModAsset?,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of screenshots assets
|
* List of screenshots assets
|
||||||
|
|||||||
Reference in new issue
Block a user