Skip to content
Snippets Groups Projects
Commit 9b6f1d64 authored by PilzAdam's avatar PilzAdam
Browse files

Dont dig or place nodes if interact priv is missing (clientside)

parent 53066024
No related branches found
No related tags found
No related merge requests found
......@@ -2589,7 +2589,8 @@ void the_game(
Handle digging
*/
if(nodig_delay_timer <= 0.0 && input->getLeftState())
if(nodig_delay_timer <= 0.0 && input->getLeftState()
&& client.checkPrivilege("interact"))
{
if(!digging)
{
......@@ -2716,8 +2717,10 @@ void the_game(
camera.setDigging(0); // left click animation
}
if(input->getRightClicked() ||
repeat_rightclick_timer >= g_settings->getFloat("repeat_rightclick_time"))
if((input->getRightClicked() ||
repeat_rightclick_timer >=
g_settings->getFloat("repeat_rightclick_time")) &&
client.checkPrivilege("interact"))
{
repeat_rightclick_timer = 0;
infostream<<"Ground right-clicked"<<std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment