1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Rename "build" privilege to "interact" (backwards-compatibly, of course)

This commit is contained in:
Perttu Ahola 2011-12-02 12:18:19 +02:00
parent 69bc9224db
commit 932988af46
3 changed files with 13 additions and 11 deletions

View file

@ -2381,7 +2381,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
}
else if(command == TOSERVER_SIGNNODETEXT)
{
if((getPlayerPrivs(player) & PRIV_BUILD) == 0)
if((getPlayerPrivs(player) & PRIV_INTERACT) == 0)
return;
/*
u16 command
@ -2562,7 +2562,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
// Disallow moving items in elsewhere than player's inventory
// if not allowed to build
if((getPlayerPrivs(player) & PRIV_BUILD) == 0
if((getPlayerPrivs(player) & PRIV_INTERACT) == 0
&& (ma->from_inv != "current_player"
|| ma->to_inv != "current_player"))
{
@ -2628,7 +2628,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
{
IDropAction *da = (IDropAction*)a;
// Disallow dropping items if not allowed to build
if((getPlayerPrivs(player) & PRIV_BUILD) == 0)
if((getPlayerPrivs(player) & PRIV_INTERACT) == 0)
{
delete a;
return;
@ -2976,7 +2976,7 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
/*
Make sure the player is allowed to do it
*/
bool build_priv = (getPlayerPrivs(player) & PRIV_BUILD) != 0;
bool build_priv = (getPlayerPrivs(player) & PRIV_INTERACT) != 0;
if(!build_priv)
{
infostream<<"Ignoring interaction from player "<<player->getName()