mojira.dev
MC-305362

FriendlyByteBuf$writeBlockHitResult can produce negative values

writeBlockHitResult can produce near zero negative values. As seen in the video, one value would be -2.220446E-16. I was able to patch this issue with clamping the values with a mixin.

Environment

Vanilla, Fabric. Tested on a a server with GrimAC that can fetch the cursor position.

Attachments

Comments 3

Please include steps to reproduce this in a vanilla environment, and a description of how it affects the game.

run this command
/execute in minecraft:overworld run tp @s -1.27 126.00 352.81 -115.22 11.46
make sure there is a block at 3, 126, 350.
Interact with the block.
Affect on the vanilla game: zero.

Hi!
Thank you for your report!
However, this issue is Invalid.

Your game, launcher or server is modified.
If you can reproduce the issue in a vanilla environment, please recreate the issue.

  • Any non-standard client/server/launcher build needs to be taken up with the appropriate team, not Mojang.

  • A world which had previously been opened with a modified client might be corrupted. Please try reproducing the issue in a newly generated world.

  • Any plugin issues need to be addressed to the creator of the plugin or resource pack.

  • If you have problems on large servers like Hypixel, please contact them first as they run modified server software.

Quick Links:ย 
๐Ÿ““โ€ฏIssue Guidelinesโ€ฏโ€“ ๐Ÿ’ฌโ€ฏMojang Supportโ€ฏโ€“ ๐Ÿ“งโ€ฏSuggestionsโ€ฏโ€“ ๐Ÿ“–โ€ฏMinecraft Wiki

cyde

(Unassigned)

Unconfirmed

(Unassigned)

1.21.11

Retrieved