Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/client/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,14 @@ void Camera::updateViewingRange()

void Camera::setDigging(s32 button)
{
if (m_digging_button == -1)
// If placing, do not desynchronize the animation and placement sound.
if (button == 1) {
m_digging_button = button;
m_digging_anim = 0.0f;
} else if (m_digging_button == -1) {
// Any other action.
m_digging_button = button;
}
}

void Camera::wield(const ItemStack &item)
Expand Down
Loading