-
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, Rendering
The bug
In some cases, the player can get very close to the enchanting table at high distances as in the mentioned bug report, and the book will not actually open. Near spawn, they open at much farther distances. To test this, go far out enough (specific distance explained below), and circle around the enchanting table while being pressed up against it. Eventually you should find a spot where you are absolutely colliding with the table, yet it completely refuses to acknowledge the player.
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
- relates to
-
MC-164352 Casting issue: Snow animation becomes stretched when being very high above the ground
- Open
-
MC-161888 Enchantment tables do not track the player correctly at high distances from the world origin
- 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-177723 Casting Issue: Mobs occasionally just spin around when coordinate numbers are very high
- 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