Skip to content

Commit

Permalink
close #4297
Browse files Browse the repository at this point in the history
  • Loading branch information
yrsegal committed Aug 1, 2023
1 parent 2d44fec commit 0c2bb7c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ public InteractionResult use(BlockState state, Level worldIn, BlockPos pos, Play
SoundEvent sound = type.getPlaceSound();
worldIn.playSound(player, pos, sound, SoundSource.BLOCKS, (type.getVolume() + 1.0F) / 2.0F, type.getPitch() * 0.8F);

stack.shrink(1);
if (!player.getAbilities().instabuild) {
stack.shrink(1);
}
}
return InteractionResult.SUCCESS;
}
Expand Down

0 comments on commit 0c2bb7c

Please sign in to comment.