mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Bug fix: Call handler.OnNetworkPacket() repeatedly
This commit is contained in:
parent
a6b98de43f
commit
e4c77b0fef
1 changed files with 0 additions and 7 deletions
|
|
@ -188,15 +188,8 @@ namespace MinecraftClient.Protocol.Handlers
|
|||
while (packetQueue.TryTake(out Tuple<int, Queue<byte>>? packetInfo))
|
||||
{
|
||||
(int packetID, Queue<byte> packetData) = packetInfo;
|
||||
|
||||
HandlePacket(packetID, packetData);
|
||||
|
||||
if (handler.GetNetworkPacketCaptureEnabled())
|
||||
{
|
||||
List<byte> clone = packetData.ToList();
|
||||
handler.OnNetworkPacket(packetID, clone, login_phase, true);
|
||||
}
|
||||
|
||||
stopWatch.Stop();
|
||||
if (stopWatch.Elapsed.Milliseconds >= 100)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue