Skip to content

Commit 9b6f1d6

Browse files
committedJun 19, 2013
Dont dig or place nodes if interact priv is missing (clientside)
1 parent 5306602 commit 9b6f1d6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎src/game.cpp

+6-3
Original file line numberDiff line numberDiff line change
@@ -2589,7 +2589,8 @@ void the_game(
25892589
Handle digging
25902590
*/
25912591

2592-
if(nodig_delay_timer <= 0.0 && input->getLeftState())
2592+
if(nodig_delay_timer <= 0.0 && input->getLeftState()
2593+
&& client.checkPrivilege("interact"))
25932594
{
25942595
if(!digging)
25952596
{
@@ -2716,8 +2717,10 @@ void the_game(
27162717
camera.setDigging(0); // left click animation
27172718
}
27182719

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"))
27212724
{
27222725
repeat_rightclick_timer = 0;
27232726
infostream<<"Ground right-clicked"<<std::endl;

0 commit comments

Comments
 (0)
Please sign in to comment.