Core: Updated to 11.1.7

Port From (https://github.com/TrinityCore/TrinityCore/commit/ceb8d561b44579118b109a9ff71ba415df53bbdc)
This commit is contained in:
Hondacrx
2025-08-18 14:47:48 -04:00
parent 5f6329665a
commit ebd9c9e636
35 changed files with 1824 additions and 1603 deletions
+13
View File
@@ -48,9 +48,17 @@ namespace Game
if (packet.DataType >= AccountDataTypes.Max)
return;
UpdateAccountDataComplete updateAccountDataComplete = new();
if (packet.Size == 0)
{
SetAccountData(packet.DataType, 0, "");
updateAccountDataComplete.Player = packet.PlayerGuid;
updateAccountDataComplete.DataType = (int)packet.DataType;
updateAccountDataComplete.Result = 0;
SendPacket(updateAccountDataComplete);
return;
}
@@ -62,6 +70,11 @@ namespace Game
byte[] data = ZLib.Decompress(packet.CompressedData.GetData(), packet.Size);
SetAccountData(packet.DataType, packet.Time, Encoding.Default.GetString(data));
updateAccountDataComplete.Player = packet.PlayerGuid;
updateAccountDataComplete.DataType = (int)packet.DataType;
updateAccountDataComplete.Result = 0;
SendPacket(updateAccountDataComplete);
}
[WorldPacketHandler(ClientOpcodes.SetSelection)]