1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Make client report a newer version number to the server than 2011-07-31 does and make the server enforce it

This commit is contained in:
Perttu Ahola 2011-09-22 20:47:47 +03:00
parent 7244f09111
commit bdf54908aa
4 changed files with 13 additions and 2 deletions

View file

@ -2010,6 +2010,14 @@ void Server::ProcessData(u8 *data, u32 datasize, u16 peer_id)
L"Your client is too old. Please upgrade.");
return;
}
/* Uhh... this should actually be a warning but let's do it like this */
if(net_proto_version < 2)
{
SendAccessDenied(m_con, peer_id,
L"Your client is too old. Please upgrade.");
return;
}
/*
Set up player