Skip to content

Commit

Permalink
fix: crushing sound does not fade with distance
Browse files Browse the repository at this point in the history
Closes #965
  • Loading branch information
klikli-dev committed Aug 21, 2023
1 parent 773f220 commit 3cb4140
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void update() {
if (this.currentRecipe.isPresent()) {
//play crushing sound
this.entity.level()
.playSound(null, this.entity.blockPosition(), OccultismSounds.CRUNCHING.get(), SoundSource.NEUTRAL, 0.5f,
.playSound(null, this.entity.blockPosition(), OccultismSounds.CRUNCHING.get(), SoundSource.NEUTRAL, 1f,
1 + 0.5f * this.entity.getRandom().nextFloat());
} else {
//if no recipe is found, drop hand held item as we can't process it
Expand Down Expand Up @@ -130,7 +130,7 @@ public void update() {
//every two seconds, play another crushing sound
if (this.crushingTimer % 40 == 0) {
this.entity.level().playSound(null, this.entity.blockPosition(), OccultismSounds.CRUNCHING.get(),
SoundSource.NEUTRAL, 0.5f,
SoundSource.NEUTRAL, 1f,
1 + 0.5f * this.entity.getRandom().nextFloat());
}

Expand Down
Binary file not shown.

0 comments on commit 3cb4140

Please sign in to comment.