Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-182748

Casting issue: Redstone dust particles are generated at the wrong positions at high coordinates

    XMLWordPrintable

    Details

    • Confirmation Status:
      Confirmed
    • Category:
      Particles
    • Mojang Priority:
      Trivial

      Description

      The fix to MC-181566 appears to have made redstone dust start using 32-bit floats for creating particles, which causes them to appear at the wrong positions when far from spawn e.g. 20 million blocks out.

      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-167421, MC-164352, MC-183174, MC-186362, MC-167103, MC-182789

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              grum [Mojang] Grum (Erik Broes)
              Reporter:
              Awesoman3000 Connor Steppie
              Votes:
              4 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: