Core/PacketIO: Updated SMSG_UPDATE_OBJECT for 11.0.5

Port From (https://github.com/TrinityCore/TrinityCore/commit/68db469ee1f992bcdc81de64d6af1007d303be05)
This commit is contained in:
Hondacrx
2024-11-11 21:11:21 -05:00
parent 5909e7ba98
commit 7d351406f5
23 changed files with 678 additions and 208 deletions
+3
View File
@@ -16,6 +16,8 @@ namespace Game.Entities
ObjectTypeMask |= TypeMask.Container;
ObjectTypeId = TypeId.Container;
m_entityFragments.Add(EntityFragment.Tag_Container, false);
m_containerData = new ContainerData();
}
@@ -195,6 +197,7 @@ namespace Game.Entities
valuesMask.Set((int)TypeId.Container);
WorldPacket buffer = new();
BuildEntityFragmentsForValuesUpdateForPlayerWithMask(buffer, flags);
buffer.WriteUInt32(valuesMask.GetBlock(0));
if (valuesMask[(int)TypeId.Object])