自从添加了蹲伏动画后,这个 bug 就一直存在:
这是因为当玩家蹲下时,服务器会回传视觉上的开始和停止蹲伏动画,但信息传输需要时间,而玩家在服务器回传这些数据包之前就可以轻易地蹲下再站起。这会导致客户端出现视觉不同步。
不相信我?(速桥者们对此再熟悉不过了)
在 1.14 版本之后加载一个世界或加入服务器,然后快速按下蹲伏键。(意思是按下蹲伏键并迅速取消,而不是疯狂连击)。你会注意到很多时候会出现多余的蹲伏动画。
顺便提一下
本模组借用了以下模组的代码:
因此,如果你想要更多功能来调整蹲伏的工作方式,可以前往那里。我只是想修复一个 bug,而不是创建一个依赖其他模组的大型整合包。
Ever since the crouching animation was added this bug has existed:
It's because the server sends back the visual starting and stopping crouching animations when the player crouches, but information takes time to travel and it is trivial to crouch and uncrouch before the server sends those packets back. This causes a visual desync on the client end.
Don't believe me? (Speedbridgers know this all too well)
Load up a world or join a server after version 1.14 and tap your crouch key very quickly. (as in press crouch and quickly uncrouch, not spam it). You will notice and extra crouch animation much of the time.
BTW
This mod borrows code from sneak tweaking here:
so if you want more functionality to tweak how crouching works, then go there. I just wanted to fix a bug not a bigger mod with dependencies.
评论 0
登录后参与评分
还没有评论,来抢沙发吧