ねらひかだ 19e3d339f6
InGamePacketHandler: subtract from raw position before rounding it (#6022)
This allows better compensation for floating point errors introduced by the subtraction of the 1.62 height offset.

For example, if the player is at y=7 exactly, their Y coordinate will be reported as 8.62, which, because of floating point errors, will be something like `8.619999999`. Subtracting `1.62` from this (really something like `1.62000000000005...`) leads to the calculated Y coordinate being slightly below 7.

Rounding after subtracting this offset allows this to be rounded to 7 sharp. Similar errors appear in various other coordinates.
2023-08-29 11:43:21 +01:00
..
CS
2023-07-19 14:00:35 +01:00
git
2023-03-20 16:57:38 +00:00
2023-04-10 13:56:53 +01:00

Minecraft: Bedrock Edition network & protocol components

This directory (the pocketmine\network\mcpe namespace) contains code specific to the current version of Minecraft: Bedrock Edition.

WARNING

This namespace should be considered INTERNAL in its entirety. Publicly exposed API in this namespace can and will change frequently, and without warning.

This namespace IS NOT COVERED BY THE API VERSION SYSTEM. If your plugin uses any code in this namespace, it can and will break without warning.