Mojira Archive
MC-167971

Casting issue: Particles emitted by redstone repeaters lose precision at high coordinates

they appear at the wrong locations at high coordinates.

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

Fixed

Connor Steppie

[Mojang] Grum (Erik Broes)

2019-12-14, 06:22 PM

2021-10-17, 02:30 AM

2020-06-02, 05:00 PM

5

1

Confirmed

Low

Networking, Particles, Rendering

incorrect-particle-generation, precision-loss

1.15.1 Pre-release 1 - 20w22a1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2 Pre-release 2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w15a, 20w18a, 20w19a, 20w20a, 20w21a, 20w22a

1.16 Pre-release 1