Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务端遇到换行消息无法正常使用 以及玩家在书中写Pos解析错误 #35

Open
woshikedayaa opened this issue Dec 16, 2023 · 1 comment

Comments

@woshikedayaa
Copy link

日志
MCDR:https://mclo.gs/xICpOrb
MC:https://mclo.gs/w0q0QKQ

复现:
玩家在书中写东西 如果有换行内容 MCDR会无法解析到 见: 服务端日志 91 行 及 MCDR日志 最后一行

推测:
Here插件使用 正则表达式来处理Pos 但是处理之前并没有处理全部消息 导致换行后的消息无法处理
暂时解决办法
开启服务端 RCON

@alex3236
Copy link
Contributor

alex3236 commented Dec 16, 2023

关键日志

Count: 64b, id: "minecraft:sugar_cane"}, {Slot: 18b, Count: 64b, id: "minecraft:sugar_cane"}, {Slot: 19b, Count: 64b, id: "minecraft:sugar_cane"}, {Slot: 20b, Count: 64b, id: "minecraft:sugar_cane"}, {Slot: 21b, Count: 64b, id: "minecraft:sugar_cane"}]}}, Count: 1b}, {Slot: 8b, id: "minecraft:writable_book", tag: {pages: ["12月6日
 今天把刷铁机仓库清理了下
挺担心小六的,希望他早日康复吧,", "12月7日
 今天完善了鸡场,产量不错
以后可以量产书与笔了捏,不知道什么时候才能造通天塔刷铁机呢,我似乎得找个风水宝地建家去了,每天就只是住在全物品里(无聊"], display: {Name: '{"text":"之道的服务器日记"}'}, RepairCost: 0}, Count: 1b}, {Slot: 9b, 

另外,该问题还可能导致玩家在书中撰写 Pos: [] 造成 Here 误识别。

解决方法

  • 改用 MinecraftDataAPI,而不是自行解析
  • Archive,让位给使用 MinecraftDataAPI 的 Where-Is (什

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants