File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2589,7 +2589,8 @@ void the_game(
2589
2589
Handle digging
2590
2590
*/
2591
2591
2592
- if (nodig_delay_timer <= 0.0 && input->getLeftState ())
2592
+ if (nodig_delay_timer <= 0.0 && input->getLeftState ()
2593
+ && client.checkPrivilege (" interact" ))
2593
2594
{
2594
2595
if (!digging)
2595
2596
{
@@ -2716,8 +2717,10 @@ void the_game(
2716
2717
camera.setDigging (0 ); // left click animation
2717
2718
}
2718
2719
2719
- if (input->getRightClicked () ||
2720
- repeat_rightclick_timer >= g_settings->getFloat (" repeat_rightclick_time" ))
2720
+ if ((input->getRightClicked () ||
2721
+ repeat_rightclick_timer >=
2722
+ g_settings->getFloat (" repeat_rightclick_time" )) &&
2723
+ client.checkPrivilege (" interact" ))
2721
2724
{
2722
2725
repeat_rightclick_timer = 0 ;
2723
2726
infostream<<" Ground right-clicked" <<std::endl;
You can’t perform that action at this time.
0 commit comments