diff --git a/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/NMSScoreboard.kt b/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/NMSScoreboard.kt index a168d391d..468a6bcf1 100644 --- a/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/NMSScoreboard.kt +++ b/module/bukkit-nms/bukkit-nms-stable/src/main/kotlin/taboolib/module/nms/NMSScoreboard.kt @@ -517,8 +517,8 @@ class NMSScoreboardImpl : NMSScoreboard() { // 每个策略 lambda 先用空 JSON 测试可用性,成功后返回函数引用 private val jsonComponentImpl = versionAdaptor<(String) -> IChatBaseComponent>( { - val test = NMSChatSerializer16::class.java.invokeMethod("fromJson", "{\"text\":\"\"}", isStatic = true)!! - { text -> NMSChatSerializer16::class.java.invokeMethod("fromJson", text, isStatic = true)!! as IChatBaseComponent } + val test = NMSChatSerializer16::class.java.invokeMethod("b", "{\"text\":\"\"}", isStatic = true)!! + { text -> NMSChatSerializer16::class.java.invokeMethod("b", text, isStatic = true)!! as IChatBaseComponent } }, { val test = NMSChatSerializer16.b("{\"text\":\"\"}")!! @@ -812,4 +812,4 @@ class NMSScoreboardImpl : NMSScoreboard() { } } -// endregion \ No newline at end of file +// endregion