Skip to content

Commit

Permalink
Fixed careful break sounds
Browse files Browse the repository at this point in the history
  • Loading branch information
X-com committed May 13, 2020
1 parent 234cf5f commit fa452ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/net/minecraft/block/Block.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
+ if(CarpetSettings.carefulBreak && PlayerInteractionManager.playerMinedBlock != null && PlayerInteractionManager.playerMinedBlock.func_70093_af()){
+ entityitem.func_70100_b_(PlayerInteractionManager.playerMinedBlock);
+ if(entityitem.field_70128_L){
+ PlayerInteractionManager.playerMinedBlock.field_71135_a.func_147359_a(new SPacketSoundEffect(SoundEvents.field_187638_cR, SoundCategory.BLOCKS, p_180635_1_.func_177958_n(), p_180635_1_.func_177956_o(), p_180635_1_.func_177952_p(), 1.0F, (CarpetServer.rand.nextFloat() - CarpetServer.rand.nextFloat()) * 1.4F + 2.0F));
+ PlayerInteractionManager.playerMinedBlock.field_71135_a.func_147359_a(new SPacketSoundEffect(SoundEvents.field_187638_cR, SoundCategory.PLAYERS, p_180635_1_.func_177958_n(), p_180635_1_.func_177956_o(), p_180635_1_.func_177952_p(), 0.2F, (CarpetServer.rand.nextFloat() - CarpetServer.rand.nextFloat()) * 1.4F + 2.0F));
+ return;
+ }
+ }
Expand Down

0 comments on commit fa452ed

Please sign in to comment.