语音消息和聊天动画的兼容层

语音消息和聊天动画的兼容层

使语音消息和聊天动画模组兼容

工具

修复了当 Chat Animation [Smooth Chat] 启用了 removeMessageIndicator 时,语音消息无法在聊天中显示的问题。如果没有此修复,语音消息只会显示玩家名称,而不会显示播放小部件。

工作原理: Chat Animation 会在每一行聊天消息上清空 GuiMessageTag,而 VoiceMessages 依靠该标签来识别并渲染语音消息。此模组拦截 GuiMessage.Line.tag() 并保留 VoiceMessage 标签,从而使播放界面能够正常渲染。

需求:

  • Fabric API
  • VoiceMessages
  • Chat Animation [Smooth Chat]