From 2e82268a6789d225c191a7c6bf8bc6a5ea6181a1 Mon Sep 17 00:00:00 2001 From: JacobF Date: Tue, 23 Aug 2011 22:08:09 -0400 Subject: [PATCH] If a user doesn't have build rights, don't allow them to move items to and from their inventory --- src/server.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.cpp b/src/server.cpp index a8eb68c5..88cd7f34 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) -- 2.30.2