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

Casting issue: smoke produced by lava during rain loses precision at high coordinates

    XMLWordPrintable

Details

    • Confirmed
    • Particles
    • Low

    Description

      When it rains on lava, the produced smoke ends up losing precision when far from spawn.

      I remember explicitly testing for this late in 1.15's development and not finding it, so this bug has likely resulted from a very recent change.

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                CHK: