diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-08-30 14:23:44 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-08-30 14:23:44 +0300 |
commit | 625dac8d8c84e8952fb9bf3f80c8efed7b2b4fa0 (patch) | |
tree | 5d7c7b746e615a05709e3a23900f8da3ab790926 | |
parent | 00bdfad5f6cdfff1b5e6297d2b9e8258fd5ed847 (diff) | |
parent | 2e82268a6789d225c191a7c6bf8bc6a5ea6181a1 (diff) | |
download | minetest-625dac8d8c84e8952fb9bf3f80c8efed7b2b4fa0.tar.gz minetest-625dac8d8c84e8952fb9bf3f80c8efed7b2b4fa0.tar.bz2 minetest-625dac8d8c84e8952fb9bf3f80c8efed7b2b4fa0.zip |
Merge remote-tracking branch 'queatz/privs'
-rw-r--r-- | src/server.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |