Fixed accumulating fall damage in bounce pads, and step sound

This commit is contained in:
Glassmaker committed 2014-07-14 13:12:11 +03:00
1 parent 852e31c31b
commit 6983322b9b
2 files changed
+3 -1

No files matched your search

@@ -23,7 +23,8 @@ public class StepSoundSlime extends SoundType
/**
* Used when a entity walks over, or otherwise interacts with the block.
*/
public String getStepSound ()
@Override
public String getStepResourcePath()
{
return this.soundName + ".small";
}
@@ -80,6 +80,7 @@ public class SlimePad extends MantleBlock
{
entity.posY += 1;
}
entity.fallDistance = 0.0F;
entity.addVelocity(moveX, speed * 2, moveZ);
world.playSoundEffect(x + 0.5F, y + 0.5F, z + 0.5F, this.stepSound.getStepResourcePath(), (this.stepSound.getVolume()) / 2.0F, this.stepSound.getPitch() * 0.65F);
}