block sounds
This commit is contained in:
parent
c602585e6a
commit
47b9ecbb94
14 changed files with 123 additions and 193 deletions
|
@ -290,7 +290,7 @@ public class PlayerController
|
|||
|
||||
if (this.stepSoundTickCounter % 4.0F == 0.0F && block.sound.getStepSound() != null)
|
||||
{
|
||||
this.gm.getSoundManager().playSound(new PositionedSound(block.sound.getStepSound(), (block.sound.getVolume() + 1.0F) / 8.0F, /* block.sound.getFrequency() * 0.5F, */ (float)posBlock.getX() + 0.5F, (float)posBlock.getY() + 0.5F, (float)posBlock.getZ() + 0.5F));
|
||||
this.gm.getSoundManager().playSound(new PositionedSound(block.sound.getStepSound(), 0.25F, /* block.sound.getFrequency() * 0.5F, */ (float)posBlock.getX() + 0.5F, (float)posBlock.getY() + 0.5F, (float)posBlock.getZ() + 0.5F));
|
||||
}
|
||||
|
||||
++this.stepSoundTickCounter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue