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:
parent
7ee0667b75
commit
3d0eced7e7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user