mojira.dev
MC-167091

Casting issue: Water particles dripping from leaves lose precision at high coordinates

Particles that form on the bottoms of leaves during rain use 32-bit precision instead of 64-bit like most other particles. As a result, at high coordinates these will become less precise and only form at the corners of blocks.

All types of dripping particles have been tested (water drips from blocks with water above, water from waterlogged blocks, water from sponges, lava drips from blocks with lava above, and honey drips from bee nests and beehives) and this is the only type of dripping that loses precision at such distances.

This is best tested when greater than 16,777,216 blocks out on both axes, so being 20 million blocks out should suffice. This issue is without a doubt due to incorrectly casting to a 32-bit float from an integer or double, resulting in numerical precision being lost. This can be fixed by simply not casting to a float, which eliminates any chance of losing any precision.

Related tickets: MC-182789

Linked issues

MC-167103 Casting issue: Mob spawning loses precision at high coordinates Resolved MC-45749 Potion particles spread always from the north-west corner of a block, regardless of impact Resolved MC-76810 Casting issue: Bone meal particles break at high coordinates (floating point precision) Resolved MC-161969 Casting issue: Adding ender eyes to end portal frames at high distances causes particles to lose precision Resolved MC-164352 Casting issue: Snow animation becomes stretched when being very high above the ground Open

Attachments

Comments 2

Remove the relates to for MC-76810

muzikbike

Erik Broes

Confirmed

Networking, Particles, Rendering

incorrect-particle-generation, precision-loss

1.14.4, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, , 20w18a, 20w19a, 20w20a, 20w21a, 20w22a

1.16 Pre-release 1

Retrieved