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.