We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c36432b commit 9b4e59cCopy full SHA for 9b4e59c
1 file changed
src/client/camera.cpp
@@ -590,8 +590,14 @@ void Camera::updateViewingRange()
590
591
void Camera::setDigging(s32 button)
592
{
593
- if (m_digging_button == -1)
+ // If placing, do not desynchronize the animation and placement sound.
594
+ if (button == 1) {
595
m_digging_button = button;
596
+ m_digging_anim = 0.0f;
597
+ } else if (m_digging_button == -1) {
598
+ // Any other action.
599
+ m_digging_button = button;
600
+ }
601
}
602
603
void Camera::wield(const ItemStack &item)
0 commit comments