mojira.dev
MC-94947

Chicken "steping" sound still works when the chicken is swimming

The "click" sound of when a chicken steps (very annoying btw) is still played when the chicken is swimming.

Attachments

Comments 3

Alright, found the problem:
Usually, the method Entity.playStepSound checks whether the block below the entities feet is a liquid.
However, with the new update said method has been overridden the EntityChicken class (and other entity classes e.g. EntityCow) to play the new individualized step sounds.
An unfortunate side effect is that the liquid-check is getting bypassed completely.

My suggestion to Mojang: Stick to the system you use for death and hurt sounds with methods returning the sounds name and leave the checking to the Entity.playStepSound method.

EntityChicken.java

protected void playStepSound(BlockPos pos, Block blockIn){
    this.playSound("mob.chicken.step", 0.15F, 1.0F);
}

Confirmed for 1.10-pre1

JessePinkerman

Agnes Larsson

Confirmed

Minecraft 15w51b, Minecraft 1.9.4, Minecraft 1.10 Pre-Release 1, Minecraft 1.10.2, Minecraft 16w32a, Minecraft 16w32b

Minecraft 16w38a

Retrieved