mojira.dev
MC-260238

Sniffer digging particles are produced slightly too high up

The Bug:

Sniffer digging particles are produced slightly too high up.

Steps to Reproduce:

  1. Summon a sniffer and wait for it to begin sitting and digging.

  2. Look at the particles that the sniffer produces upon digging.

  3. Take note as to whether or not sniffer digging particles are produced slightly too high up.

Observed Behavior:

Sniffer digging particles are produced slightly too high up.

Expected Behavior:

Sniffer digging particles would be produced slightly lower down.

Attachments

Comments 3

I can confirm. This can be very noticeable when looking below the sniffer in an upwards direction.

Code analysis (Mojang mappings, 1.19.4-rc2): Sniffer#emitDiggingParticles(AnimationState) creates the particles based on the block position of the sniffer's head, and then uses Vec3#atCenterOf(Vec3i) to add (0.5, 0.5, 0.5) to the block position, causing the particles to be created on the center of the block. It instead should use Vec3#atBottomCenterOf(Vec3i), which adds (0.5, 0, 0.5), which would cause the particles to be created on the ground.

Avoma

v-hjonson+bugs

Confirmed

Expansion B

Normal

Particles

23w07a, 1.19.4 Release Candidate 2, 1.19.4, 23w12a

23w13a

Retrieved