projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd8dab
)
If a user doesn't have build rights, don't allow them to move items to and from their...
author
JacobF
<queatz@gmail.com>
Wed, 24 Aug 2011 02:08:09 +0000
(22:08 -0400)
committer
JacobF
<queatz@gmail.com>
Wed, 24 Aug 2011 02:08:09 +0000
(22:08 -0400)
src/server.cpp
patch
|
blob
|
history
diff --git
a/src/server.cpp
b/src/server.cpp
index a8eb68c55a95cc5d1fb9d1dd4f1424404d9cc32c..88cd7f342dd48eb8fbb08e7ce04da049eb937c1c 100644
(file)
--- 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)