Repository navigation
fix(mod): 修复 FabricProxy-Lite 兼容模式下聊天消息丢失 - #18
Merged
zkhssb merged 1 commit intoOct 2, 2026
Merged
Conversation
- 移除 Fabric 玩家聊天入口对系统消息标记的过滤 - 修复启用 hackMessageChain 后普通聊天无法转发的问题
13 tasks done
Ftimever
suggested changes
Oct 2, 2026
Comment on lines
+33
to
+34
| // 此入口只处理该连接的玩家聊天,FabricProxy-Lite 可能将其标记为系统消息。 | ||
| com.springwater.easybot.platforms.fabric.features.MessageSyncFeature.onChatMessage(message, player); |
Author
There was a problem hiding this comment.
重新补测了
- 玩家进入、退出通知
- 玩家死亡通知
- 进度达成通知
- 控制台执行 say、tellraw
- 玩家执行 /say、/tellraw
- 普通玩家聊天
- /easybot say 手动转发
都没问题
Author
There was a problem hiding this comment.
核对了下调用链,这里貌似是只处理玩家消息的
而且由于这个原因其实不会混进来系统消息
Ftimever
approved these changes
Oct 2, 2026
zkhssb
approved these changes
Oct 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更内容
isSystem()过滤。问题原因
FabricProxy-Lite 启用
hackMessageChain后,会将玩家聊天转换为PlayerChatMessage.system(...)EasyBot 在
ServerGamePacketListenerImpl.broadcastChatMessage入口过滤此类消息,导致普通聊天无法转发,而/easybot say仍能正常工作该入口处理的是当前连接的玩家聊天,可以直接使用连接中的玩家身份进行同步
影响
验证
/easybot say正常。hackMessageChain开启和关闭均正常。/easybot say仍正常。use_command标记正确。say和tellraw系统消息没有被误转发。测试说明
测试环境:
关联 issue