-
Bug
-
Resolution: Fixed
-
1.14.4, 1.15 Pre-release 4, 1.15 Pre-release 5, 1.15 Pre-release 6, 1.15 Pre-release 7, 1.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
-
Confirmed
-
Networking, Particles, Rendering
It turns out the flying embers emitted by lava are also subject to 32-bit floating point precision loss. A setup was created with a line of lava at x=16777277, and stacked on top of itself three times and locked in with glass panes, to confirm that the particles were being generated externally.
The sounds played when lava generates these particles also lose precision for the same reason, although this is basically impossible to notice within vanilla bounds. Nevertheless, this should also be looked at.
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
- discovered while testing
-
MC-167042 Casting issue: Campfire embers are generated at a point that loses precision at high coordinates
- Resolved
- relates to
-
MC-164352 Casting issue: Snow animation becomes stretched when being very high above the ground
- Open
-
MC-45749 Potion particles spread always from the north-west corner of a block, regardless of impact
- Resolved
-
MC-161969 Casting issue: Adding ender eyes to end portal frames at high distances causes particles to lose precision
- Resolved
-
MC-167042 Casting issue: Campfire embers are generated at a point that loses precision at high coordinates
- Resolved
-
MC-167103 Casting issue: Mob spawning loses precision at high coordinates
- Resolved
-
MC-167421 Casting issue: Minecarts with chests are generated in the wrong positions in abandoned mineshafts at high coordinates
- Resolved
-
MC-167971 Casting issue: Particles emitted by redstone repeaters lose precision at high coordinates
- Resolved
-
MC-170872 Casting issue: Nether biome particles suffer from precision loss
- Resolved
-
MC-171035 Casting issue: Particles from falling rain lose precision at high coordinates
- Resolved
-
MC-177723 Casting Issue: Mobs occasionally just spin around when coordinate numbers are very high
- Resolved
-
MC-182748 Casting issue: Redstone dust particles are generated at the wrong positions at high coordinates
- Resolved
-
MC-183174 Casting Issue: Certain detector rails unable to be powered when coordinate numbers are very high
- Resolved
-
MC-186362 Casting issue: Translucent block rendering breaks down at high distances
- Resolved
-
MC-167047 Casting issue: TNT blocks ignited by other explosions lose precision at high coordinates
- Resolved
-
MC-167091 Casting issue: Water particles dripping from leaves lose precision at high coordinates
- Resolved
-
MC-171037 Casting issue: Smoke produced by lava during rain loses precision at high coordinates
- Resolved