}
bool left_punch = false;
- bool left_punch_muted = false;
if(playeritem_usable && input->getLeftState())
{
client.interact(3, pointed); // place
}
}
+ else if(input->getLeftState())
+ {
+ // When button is held down in air, show continuous animation
+ left_punch = true;
+ }
pointed_old = pointed;
- if(left_punch || (input->getLeftClicked() && !left_punch_muted))
+ if(left_punch || input->getLeftClicked())
{
camera.setDigging(0); // left click animation
}