mojira.dev
MC-46417

Sprint particles are generated in spectator mode

The bug

When I was testing the newest snapshot, I tried Spectator mode. I tried to sprint, and I saw sprint particles. The particles is only there if I'm flying on the ground. I'm not sure if other players can see that, but at least the player that's sprinting can see it.

As of snapshot 18w07a, sprint particles will continuously appear even when stationary. This doesn't occur in 18w20c anymore.

You can see this when the Particles setting is All or Decreased, but not Minimal.

Code analysis

Code analysis by @unknown can be found in this comment (v2 fixes both MC-46417 and MC-94535).

Linked issues

Attachments

Comments 26

Cannot confirm in 13w05b.
Can you attach a screenshot with debug screen (F3) enabled (at daytime please...)

Screenshot attached!

Still in 07a

Fixed in 08a

Samuel Kyletoft

Confirmed in 1.8.7
(on realms, if that affects it)

EDIT: Singleplayer too

16 more comments

Affects 18w20c; although it does'nt appear when you're stationary anymore, only when sprinting.

Confirmed for 1.13-pre8

Confirmed for 1.13

Confirmed for 18w30b

Maciej Ratyński

Affects 1.14.4

Simple fix:
in `Entity` class in function `spawnRunningParticles` add

if (this.isSprinting() && !this.isInWater())

to

if (this.isSprinting() && !this.isInWater() && !this.isSpectator())

I also prefer to change it to

if (this.isSprinting() && !this.isInWater() && !this.isSpectator() && !this.isSneaking() && !this.isInLava() && this.isAlive())

so this fix also but with spawning particles after death, when swim in lava, and when someone sneak and sprint (yes, this is possible)

Ruben

Asteraoth

Felix Jones

Confirmed

Particles

Minecraft 14w05a, Minecraft 14w05b, Minecraft 14w07a, Minecraft 1.8.7, Minecraft 15w33c, ..., 1.15.2, 20w07a, 20w12a, 20w13b, 20w14a

Minecraft 14w08a, 20w17a

Retrieved