1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

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

This commit is contained in:
JacobF
2011-08-23 22:08:09 -04:00
parent efd8dabd91
commit 2e82268a67

View File

@@ -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)