The bug
The riptide spinning animation not showing when using riptide after just coming out of water. You will just get launched and the animation isn't showing and the sound isn't playing.
Example
Here is an example in video:
[media]Linked issues
is duplicated by
relates to
Attachments
Comments
May be easier to reproduce when having slow falling.
This bug seems to occur because the client and server disagree on the client's position, because of this line in ClientPlayerEntity:
boolean flag1 = d4 * d4 + d0 * d0 + d1 * d1 > 9.0E-4D || this.positionReminder >= 20;
This stops the client sending small movements under 0.03 blocks to the server. The easiest fix would be changing that line to this line:
boolean flag1 = d4 * d4 + d0 * d0 + d1 * d1 > 0 || this.positionReminder >= 20;
This would send all movements to the server and would prevent this desync.
Affects 1.17.1
Can confirm in the latest version. 1.20.2 and 23w45a:
[media]
Affects 1.16-rc1