mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Move Server ban check to different point
This commit is contained in:
parent
5dbc1d4c08
commit
89f3502b56
3 changed files with 25 additions and 25 deletions
|
@ -95,6 +95,9 @@ void Server::handleCommand_Init(NetworkPacket* pkt)
|
|||
return;
|
||||
}
|
||||
|
||||
if (denyIfBanned(peer_id))
|
||||
return;
|
||||
|
||||
// First byte after command is maximum supported
|
||||
// serialization version
|
||||
u8 client_max;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue