1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix click-digging torches (#5652)

Torches are dug instantly again.
When the digging time is 0, a delay of 0.15 seconds is added between digging nodes. If the left mouse button is released, the delay is set to 0, thus click-digging.
This commit is contained in:
you 2017-04-28 20:12:28 +02:00 committed by SmallJoker
parent e21a1ab3bd
commit 7f4cdbcbe9
3 changed files with 30 additions and 18 deletions

View file

@ -98,7 +98,7 @@ DigParams getDigParams(const ItemGroupList &groups,
return DigParams(true, 0.5, 0, "dig_immediate");
case 3:
//infostream<<"dig_immediate=3"<<std::endl;
return DigParams(true, 0.15, 0, "dig_immediate");
return DigParams(true, 0, 0, "dig_immediate");
default:
break;
}