ReAdding Azia's fixes that got removed when I fucked up on the license change.

This commit is contained in:
Yogurt 2019-06-08 21:11:51 -07:00 committed by Filip Maj
parent afd056d82d
commit d3027c3b26
4 changed files with 25 additions and 2 deletions

View file

@ -42,11 +42,17 @@ namespace Meteor.World
public void QueuePacket(BasePacket packet)
{
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
FlushQueuedSendPackets();
SendPacketQueue.Add(packet);
}
public void QueuePacket(SubPacket subpacket)
{
if (SendPacketQueue.Count == SendPacketQueue.BoundedCapacity - 1)
FlushQueuedSendPackets();
bool isAuthed = true;
bool isEncrypted = false;
subpacket.SetTargetId(owner.sessionId);