mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Add padding packets for Mono
Padding plugin message for faster command sending
This commit is contained in:
parent
26a2fdd517
commit
023454749e
2 changed files with 15 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue