mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-30 23:05:03 +01:00
Fix mechanical drill and saw using the wrong SoundSource (#7038)
This commit is contained in:
parent
d8310a6fb9
commit
18fb3b4beb
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ public abstract class BlockBreakingKineticBlockEntity extends KineticBlockEntity
|
||||||
float breakSpeed = getBreakSpeed();
|
float breakSpeed = getBreakSpeed();
|
||||||
destroyProgress += Mth.clamp((int) (breakSpeed / blockHardness), 1, 10 - destroyProgress);
|
destroyProgress += Mth.clamp((int) (breakSpeed / blockHardness), 1, 10 - destroyProgress);
|
||||||
level.playSound(null, worldPosition, stateToBreak.getSoundType()
|
level.playSound(null, worldPosition, stateToBreak.getSoundType()
|
||||||
.getHitSound(), SoundSource.NEUTRAL, .25f, 1);
|
.getHitSound(), SoundSource.BLOCKS, .25f, 1);
|
||||||
|
|
||||||
if (destroyProgress >= 10) {
|
if (destroyProgress >= 10) {
|
||||||
onBlockBroken(stateToBreak);
|
onBlockBroken(stateToBreak);
|
||||||
|
|
Loading…
Reference in a new issue