Core/PacketIO: Fixed packet structres changed after build 54449

Port From (https://github.com/TrinityCore/TrinityCore/commit/f20fa7aeb59240b3425e2e4f52324e3aea63e564)
This commit is contained in:
Hondacrx
2024-08-26 19:54:19 -04:00
parent d963e011fc
commit bd620ac608
2 changed files with 6 additions and 4 deletions
@@ -262,7 +262,7 @@ namespace Game.Networking.Packets
public uint PetCreatureFamilyId;
public bool BoostInProgress; // @todo
public uint[] ProfessionIds = new uint[2]; // @todo
public VisualItemInfo[] VisualItems = new VisualItemInfo[InventorySlots.ReagentBagEnd];
public VisualItemInfo[] VisualItems = new VisualItemInfo[19];
public List<string> MailSenders = new();
public List<uint> MailSenderTypes = new();
public bool RpeResetAvailable = false;
@@ -304,6 +304,7 @@ namespace Game.Networking.Packets
data.WriteBit(HasAchievement);
data.WriteBit(HasHeritageArmor);
data.WriteBit(IsLocked);
data.WriteBit(Unused1027);
data.FlushBits();
}
@@ -312,6 +313,7 @@ namespace Game.Networking.Packets
public bool HasAchievement;
public bool HasHeritageArmor;
public bool IsLocked;
public bool Unused1027;
}
public struct UnlockedConditionalAppearance
@@ -48,7 +48,7 @@ namespace Game.Networking.Packets
TargetGUID = _worldPacket.ReadPackedGuid();
TargetVirtualRealmAddress = _worldPacket.ReadUInt32();
uint targetLen = _worldPacket.ReadBits<uint>(6);
uint targetLen = _worldPacket.ReadBits<uint>(9);
uint textLen = _worldPacket.ReadBits<uint>(11);
if (targetLen > 1)
@@ -118,8 +118,8 @@ namespace Game.Networking.Packets
PlayerGUID = _worldPacket.ReadPackedGuid();
PlayerVirtualRealmAddress = _worldPacket.ReadUInt32();
uint playerNameLength = _worldPacket.ReadBits<uint>(6);
uint channelNameLength = _worldPacket.ReadBits<uint>(6);
uint playerNameLength = _worldPacket.ReadBits<uint>(9);
uint channelNameLength = _worldPacket.ReadBits<uint>(8);
if (playerNameLength > 1)
{