From: JacobF Date: Wed, 24 Aug 2011 02:08:09 +0000 (-0400) Subject: If a user doesn't have build rights, don't allow them to move items to and from their... X-Git-Tag: 0.2.20110922~28^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2e82268a6789d225c191a7c6bf8bc6a5ea6181a1;p=oweals%2Fminetest.git If a user doesn't have build rights, don't allow them to move items to and from their inventory --- diff --git a/src/server.cpp b/src/server.cpp index a8eb68c55..88cd7f342 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -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)