Add padding packets for Mono

Padding plugin message for faster command sending
This commit is contained in:
ORelio 2014-03-26 15:24:17 +01:00
parent 26a2fdd517
commit 023454749e
2 changed files with 15 additions and 0 deletions

View file

@ -407,6 +407,9 @@ namespace MinecraftClient
for (int i = offset; i - offset < count; i++)
tosend_cache.Add(buffer[i]);
if (tosend_cache.Count < 16)
tosend_cache.AddRange(MinecraftCom.getPaddingPacket());
while (tosend_cache.Count > 16)
{
byte[] temp_in = new byte[16];