Skip to content
Snippets Groups Projects
Commit 2e82268a authored by JacobF's avatar JacobF
Browse files

If a user doesn't have build rights, don't allow them to move items to and from their inventory

parent efd8dabd
No related branches found
No related tags found
No related merge requests found
......@@ -3198,6 +3198,9 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
mlist->addItem(item1);
}
}
// Disallow moving items if not allowed to build
else if((getPlayerPrivs(player) & PRIV_BUILD) == 0)
return;
}
if(disable_action == false)
......
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