Update to 2.6.0 & Implement Rogue Magic

This commit is contained in:
StopWuyu
2024-10-05 22:40:41 +08:00
parent 50c2f6d13a
commit f432026d56
2369 changed files with 178947 additions and 133932 deletions

View File

@@ -79,7 +79,7 @@ public class Connection(KcpConversation conversation, IPEndPoint remote) : Danhe
{
var gamePacket = data.ToArray();
if (ConfigManager.Config.GameServer.UsePacketEncryption)
Crypto.Xor(gamePacket, XorKey);
Crypto.Xor(gamePacket, XorKey!);
await using MemoryStream ms = new(gamePacket);
using BinaryReader br = new(ms);