mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Reset dig_time when switching to a tool that cant dig the current node
This commit is contained in:
parent
21d6b39fd7
commit
7a58c1d4ca
1 changed files with 6 additions and 1 deletions
|
@ -2706,7 +2706,12 @@ void the_game(
|
||||||
gamedef->event()->put(e);
|
gamedef->event()->put(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
dig_time += dtime;
|
if(dig_time_complete < 100000.0)
|
||||||
|
dig_time += dtime;
|
||||||
|
else {
|
||||||
|
dig_time = 0;
|
||||||
|
client.setCrack(-1, nodepos);
|
||||||
|
}
|
||||||
|
|
||||||
camera.setDigging(0); // left click animation
|
camera.setDigging(0); // left click animation
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue