Skip to content

Commit

Permalink
🐛 fix details
Browse files Browse the repository at this point in the history
  • Loading branch information
XiYang6666 committed Jun 8, 2024
1 parent c5493c3 commit 2ff84c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface ItemDataServices {
fun hasItemData(item: ItemStack, path: String): Boolean

companion object {
lateinit var instance: ItemDataServices
private lateinit var instance: ItemDataServices

fun load(config: PluginConfig) {
instance = when (config.itemDataMode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface StorageServices {
fun search(incompleteHash: String): List<Pair<String, String>>

companion object {
lateinit var instance: StorageServices
private lateinit var instance: StorageServices

fun load(config: PluginConfig) {
instance = when (config.storageMode) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/xyz/xasmc/hashbook/util/MessageUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object MessageUtil {
}

fun shortHashMessage(hash: String): String {
val shortHash = hash.substring(0..6.coerceAtMost(hash.length))
val shortHash = hash.substring(0..hash.length.coerceAtMost(6))
return copyMsg("$shortHash <i><gold>[点击复制]</gold></i>", hash, "<green>$hash</green>")
}

Expand Down

0 comments on commit 2ff84c5

Please sign in to comment.