Fixes #2466: Placement sound for cables / parts was not played back to the player doing the placement.
This commit is contained in:
parent
41b8754130
commit
e5decb1325
1 changed files with 2 additions and 2 deletions
|
@ -379,9 +379,9 @@ public class PartPlacement
|
|||
if( mySide != null )
|
||||
{
|
||||
multiPart.maybeBlock().ifPresent( multiPartBlock -> {
|
||||
final SoundType ss = multiPartBlock.getSoundType();
|
||||
final SoundType ss = multiPartBlock.getSoundType(state, world, pos, player);
|
||||
|
||||
world.playSound( player, 0.5 + pos.getX(), 0.5 + pos.getY(), 0.5 + pos.getZ(), ss.getPlaceSound(), SoundCategory.BLOCKS, ( ss.getVolume() + 1.0F ) / 2.0F, ss.getPitch() * 0.8F );
|
||||
world.playSound( null, pos, ss.getPlaceSound(), SoundCategory.BLOCKS, ( ss.getVolume() + 1.0F ) / 2.0F, ss.getPitch() * 0.8F );
|
||||
});
|
||||
|
||||
if( !player.capabilities.isCreativeMode )
|
||||
|
|
Loading…
Reference in a new issue