Skip to content

Commit

Permalink
fix: fix treasure hunt packet size
Browse files Browse the repository at this point in the history
  • Loading branch information
lsl1225 authored and zhyupe committed Nov 25, 2024
1 parent 20df4c9 commit 771f7c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cafe.Matcha/Network/NetworkMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void HandleMessage(Packet packet)
private void TryHandleServerMessage(Packet packet)
{
// Treasure Shifting Wheel Result
if (packet.DataLength == 88)
if (packet.DataLength == 56)
{
var data = packet.GetRawData();
var level = BitConverter.ToUInt32(data, 24);
Expand Down Expand Up @@ -138,7 +138,7 @@ private void TryHandleServerMessage(Packet packet)
}
}
}
else if (packet.DataLength == 96)
else if (packet.DataLength == 64)
{
var data = packet.GetRawData();
var flag = BitConverter.ToUInt32(data, 16);
Expand Down

0 comments on commit 771f7c5

Please sign in to comment.