mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-02-06 18:34:59 +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);
|
||||||
|
@ -142,7 +142,7 @@ public abstract class BlockBreakingKineticBlockEntity extends KineticBlockEntity
|
||||||
return;
|
return;
|
||||||
if (level.restoringBlockSnapshots)
|
if (level.restoringBlockSnapshots)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ItemEntity itementity = new ItemEntity(level, vec.x, vec.y, vec.z, stack);
|
ItemEntity itementity = new ItemEntity(level, vec.x, vec.y, vec.z, stack);
|
||||||
itementity.setDefaultPickUpDelay();
|
itementity.setDefaultPickUpDelay();
|
||||||
itementity.setDeltaMovement(Vec3.ZERO);
|
itementity.setDeltaMovement(Vec3.ZERO);
|
||||||
|
|
Loading…
Reference in a new issue