mojira.dev
MC-171037

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

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

Linked issues

Attachments

Comments 1

Due to MC-164158, lava didn't produce any smoke particles when being hit by rain. Maybe that's why you didn't notice it before.

muzikbike

Erik Broes

Confirmed

Low

Particles

incorrect-particle-generation, precision-loss

20w06a, 20w07a, 20w08a, 20w09a, 20w10a, ..., 20w18a, 20w19a, 20w20a, 20w21a, 20w22a

1.16 Pre-release 1

Retrieved