Skip to content

Commit

Permalink
Fix mechanical drill and saw using the wrong SoundSource (#7038)
Browse files Browse the repository at this point in the history
  • Loading branch information
justliliandev authored Jan 10, 2025
1 parent d8310a6 commit 18fb3b4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void tick() {
float breakSpeed = getBreakSpeed();
destroyProgress += Mth.clamp((int) (breakSpeed / blockHardness), 1, 10 - destroyProgress);
level.playSound(null, worldPosition, stateToBreak.getSoundType()
.getHitSound(), SoundSource.NEUTRAL, .25f, 1);
.getHitSound(), SoundSource.BLOCKS, .25f, 1);

if (destroyProgress >= 10) {
onBlockBroken(stateToBreak);
Expand Down Expand Up @@ -142,7 +142,7 @@ public void onBlockBroken(BlockState stateToBreak) {
return;
if (level.restoringBlockSnapshots)
return;

ItemEntity itementity = new ItemEntity(level, vec.x, vec.y, vec.z, stack);
itementity.setDefaultPickUpDelay();
itementity.setDeltaMovement(Vec3.ZERO);
Expand Down

0 comments on commit 18fb3b4

Please sign in to comment.