mirror of
https://github.com/minetest/minetest.git
synced 2024-12-27 16:37:30 +01:00
Reset dig_time when switching to a tool that cant dig the current node
This commit is contained in:
parent
21d6b39fd7
commit
7a58c1d4ca
@ -2706,7 +2706,12 @@ void the_game(
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user