mojira.dev
MC-94535

Flying and holding CTRL really close to the ground, emits walking particles

The bug

Flying really close to the ground, but still over. (i.e 0,00001 blocks over the ground) you will emit walking particles whilst holding the sprint key.

How to reproduce

  1. Stand still in the air (levitating)

  2. /tp yourself 0.000001 over a block, i.e /tp ~ 75.00001 ~

  3. Start sprint-flying

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

Comments 11

thgilfodrol

Confirmed for 15w51b, though I remember noticing it in previous versions as well. Also happens in spectator mode while inside blocks. Sprint particles generate as long as you're 0.2 blocks and lower from the surface of the ground.

bob

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

JUE13

Confirmed for 1.12-pre7

bemoty

Can confirm for MC 1.12.1.
Related to MC-46417

bemoty

The following is based on a decompiled version of Minecraft 1.12 using MCP 9.40pre-1.

This happens because the class net.minecraft.entity.player.EntityPlayer doesn't override the method net.minecraft.entity.Entity.spawnRunningParticles(), which means the game doesn't check if the player is on the ground (it only checks if the player is sprinting and if the player isn't in water) before it spawns running particles.

Suggested fix: net.minecraft.entity.player.EntityPlayer

@Override
public void spawnRunningParticles() {
	if(this.onGround) {
		super.spawnRunningParticles();
	}
}

This is basically just an improved version of the fix posted here as it fixes both MC-46417 and MC-94535 because the field net.minecraft.entity.Entity.onGround will always be false if the player is in spectator mode.

1 more comments
lord.quadrato

Affects 18w20c

Asteraoth

Confirmed for 1.13-pre8

Asteraoth

Confirmed for 1.13

Asteraoth

Confirmed for 18w30b

Marwan Zaki

Can confirm for 1.14.3

bror

Asteraoth

Felix Jones

Confirmed

(Unassigned)

Minecraft 1.8.9, Minecraft 15w51b, Minecraft 16w36a, Minecraft 1.11.2, Minecraft 17w06a, ..., Minecraft 1.14.3, 1.14.4, 1.15 Pre-Release 2, 1.15.2, 20w12a

20w17a

Retrieved