mojira.dev
MC-261355

Color provider not applied properly for falling dust particles

Falling particles from a modding falling block (such as custom sand) with a color provider will have `null` passed in world and pos when calculating the color of the particle. Therefore, the world and pos context are not useable in a color provider when calculating the particle color.

Code Analysis

(Yarn mappings)

`null` is passed in to `BlockColorProvider.getColor` in `BlockColors.getParticleColor`.

[media]

Potential Solution

Replace the two `null` on line 111 with `world` and `pos`.

Attachments

Comments 4

What is the gameplay impact? Code analysis issues aren't accepted without an actual impact one can experience in-game.

This only affects some modding scenarios but it will affect the game when this feature is used.

It doesn't, see also MC-260378.

Invalid.

If it only affects modded instances of the game and has no impact on vanilla gameplay, it cannot be accepted as a valid bug, as per other precedents. Resolving as Invalid.

Kevinthegreat

(Unassigned)

Unconfirmed

(Unassigned)

1.19.4

Retrieved