1
0
Fork 0
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:
Hybrid Dog 2017-04-10 22:07:52 +02:00 committed by paramat
parent cf37a55690
commit 858c722974
3 changed files with 3 additions and 11 deletions

View file

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