Fix login

This commit is contained in:
Hondacrx
2024-11-16 23:05:45 -05:00
parent 76b0d747d3
commit 406aa5e445
26 changed files with 151 additions and 76 deletions
+6 -4
View File
@@ -172,11 +172,13 @@ namespace Game.Entities
UpdateFieldFlag fieldFlags = GetUpdateFieldFlagsFor(target);
WorldPacket tempBuffer = new();
tempBuffer.WriteUInt8((byte)fieldFlags);
BuildEntityFragments(tempBuffer, m_entityFragments.GetIds());
tempBuffer.WriteUInt8(1); // IndirectFragmentActive: CGObject
BuildValuesCreate(tempBuffer, fieldFlags, target);
buffer.WriteUInt32(tempBuffer.GetSize());
buffer.WriteUInt8((byte)fieldFlags);
BuildEntityFragments(buffer, m_entityFragments.GetIds());
buffer.WriteUInt8(1); // IndirectFragmentActive: CGObject
buffer.WriteBytes(tempBuffer);
data.AddUpdateBlock(buffer);
@@ -3879,7 +3881,7 @@ namespace Game.Entities
public TypeMask ObjectTypeMask { get; set; }
protected TypeId ObjectTypeId { get; set; }
protected CreateObjectBits m_updateFlag;
public EntityFragmentsHolder m_entityFragments;
public EntityFragmentsHolder m_entityFragments = new();
ObjectGuid m_guid;
bool _isNewObject;
bool _isDestroyedObject;