mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
The huge item definition and item namespace unification patch (itemdef), see http://c55.me/minetest/wiki/doku.php?id=changes:itemdef
This commit is contained in:
parent
569156b013
commit
6a76c226e1
65 changed files with 7232 additions and 7282 deletions
|
@ -666,7 +666,7 @@ void Connection::send(float dtime)
|
|||
// Receive packets from the network and buffers and create ConnectionEvents
|
||||
void Connection::receive()
|
||||
{
|
||||
u32 datasize = 100000;
|
||||
u32 datasize = m_max_packet_size * 2; // Double it just to be safe
|
||||
// TODO: We can not know how many layers of header there are.
|
||||
// For now, just assume there are no other than the base headers.
|
||||
u32 packet_maxsize = datasize + BASE_HEADER_SIZE;
|
||||
|
@ -854,10 +854,6 @@ void Connection::receive()
|
|||
dout_con<<"ProcessPacket returned data of size "
|
||||
<<resultdata.getSize()<<std::endl;
|
||||
|
||||
if(datasize < resultdata.getSize())
|
||||
throw InvalidIncomingDataException
|
||||
("Buffer too small for received data");
|
||||
|
||||
ConnectionEvent e;
|
||||
e.dataReceived(peer_id, resultdata);
|
||||
putEvent(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue