mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add delay between punching and digging node (#15931)
This commit is contained in:
parent
884f411387
commit
1db5a2f950
1 changed files with 1 additions and 0 deletions
|
@ -3633,6 +3633,7 @@ void Game::handlePointingAtObject(const PointedThing &pointed, const ItemStack &
|
|||
if (do_punch) {
|
||||
infostream << "Punched object" << std::endl;
|
||||
runData.punching = true;
|
||||
runData.nodig_delay_timer = std::max(0.15f, m_repeat_dig_time);
|
||||
}
|
||||
|
||||
if (do_punch_damage) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue