Dont dig or place nodes if interact priv is missing (clientside)
parent
53066024f6
commit
9b6f1d647c
|
@ -2589,7 +2589,8 @@ void the_game(
|
||||||
Handle digging
|
Handle digging
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(nodig_delay_timer <= 0.0 && input->getLeftState())
|
if(nodig_delay_timer <= 0.0 && input->getLeftState()
|
||||||
|
&& client.checkPrivilege("interact"))
|
||||||
{
|
{
|
||||||
if(!digging)
|
if(!digging)
|
||||||
{
|
{
|
||||||
|
@ -2716,8 +2717,10 @@ void the_game(
|
||||||
camera.setDigging(0); // left click animation
|
camera.setDigging(0); // left click animation
|
||||||
}
|
}
|
||||||
|
|
||||||
if(input->getRightClicked() ||
|
if((input->getRightClicked() ||
|
||||||
repeat_rightclick_timer >= g_settings->getFloat("repeat_rightclick_time"))
|
repeat_rightclick_timer >=
|
||||||
|
g_settings->getFloat("repeat_rightclick_time")) &&
|
||||||
|
client.checkPrivilege("interact"))
|
||||||
{
|
{
|
||||||
repeat_rightclick_timer = 0;
|
repeat_rightclick_timer = 0;
|
||||||
infostream<<"Ground right-clicked"<<std::endl;
|
infostream<<"Ground right-clicked"<<std::endl;
|
||||||
|
|
Loading…
Reference in New Issue