1
0

ChunkSender won't send NULL packets anymore

git-svn-id: http://mc-server.googlecode.com/svn/trunk@376 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-03-06 21:48:45 +00:00
parent 7ee0667b75
commit 3d0eced7e7

View File

@ -186,7 +186,11 @@ void cChunkSender::BlockData(const char * a_Data)
void cChunkSender::BlockEntity(cBlockEntity * a_Entity)
{
m_Packets.push_back(a_Entity->GetPacket());
cPacket * Packet = a_Entity->GetPacket();
if (Packet != NULL)
{
m_Packets.push_back(Packet);
}
}