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

feat✨(rules): 添加 fakePlayerInteractLikeClient 规则以修复假人交互与客户端行为的不一致 #136

Merged
merged 1 commit into from
Aug 17, 2024

Conversation

wendavid552
Copy link
Collaborator

本规则将把假人的行为与正常客户端行为同步

详细解析

在假人的use命令中调用interact()和interactAt()函数并获取其ActionResult,但是部分实体(本次主要是盔甲架、船和矿车)的交互结果在客户端和服务器端存在不一致(客户端会判断并直接提前返回认为是成功的结果,但服务器端会进行详细的判断)。

说明

在未来遇到任何类似问题时,同样可以在本规则下添加代码。

在假人的use命令中调用interact()和interactAt()函数并获取其ActionResult,但是部分实体(本次主要是盔甲架、船和矿车)的交互结果在客户端和服务器端存在不一致。本规则将把假人的行为与正常客户端行为同步。
在未来遇到任何类似问题时,同样可以
@wendavid552 wendavid552 merged commit b6ad669 into preview Aug 17, 2024
16 checks passed
@wendavid552 wendavid552 deleted the exp/fix/carpetFakePlayerVanillaBehaviour branch August 17, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant