mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Tools: Fix tool digging speed limit
This commit is contained in:
parent
cf37a55690
commit
858c722974
3 changed files with 3 additions and 11 deletions
|
@ -3888,13 +3888,6 @@ void Game::handleDigging(const PointedThing &pointed, const v3s16 &nodepos,
|
|||
if (runData.nodig_delay_timer > 0.3)
|
||||
runData.nodig_delay_timer = 0.3;
|
||||
|
||||
// We want a slight delay to very little
|
||||
// time consuming nodes
|
||||
const float mindelay = 0.15;
|
||||
|
||||
if (runData.nodig_delay_timer < mindelay)
|
||||
runData.nodig_delay_timer = mindelay;
|
||||
|
||||
bool is_valid_position;
|
||||
MapNode wasnode = map.getNodeNoEx(nodepos, &is_valid_position);
|
||||
if (is_valid_position) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue