1
0
Fork 0
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:
Elias Åström 2025-04-04 18:46:27 +02:00 committed by GitHub
parent 884f411387
commit 1db5a2f950
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {