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

Casting issue: Smoke particles emitted by campfires during rain form at the wrong positions at high coordinates

XMLWordPrintable

    • Unconfirmed
    • (Unassigned)

      Campfires and soul campfires emit extra smoke particles during rain. When very far away from spawn, these particles can appear far from the campfire. This bug first emerged in 206a, and is without a doubt linked to the rain/lava smoke precision loss bug introduced in the same snapshot.

      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

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

              Created:
              Updated:
              Resolved: