fix: Fixes more packet initializations (#1507)
This commit is contained in:
parent
0bec97639f
commit
2a3e048b86
8 changed files with 26 additions and 23 deletions
|
|
@ -17,7 +17,7 @@ public static class OutgoingVirtualHairPackets
|
|||
return;
|
||||
}
|
||||
|
||||
Span<byte> buffer = stackalloc byte[EquipUpdatePacketLength];
|
||||
Span<byte> buffer = stackalloc byte[EquipUpdatePacketLength].InitializePacket();
|
||||
CreateHairEquipUpdatePacket(buffer, m, hairSerial, itemId, hue, layer);
|
||||
ns.Send(buffer);
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ public static class OutgoingVirtualHairPackets
|
|||
return;
|
||||
}
|
||||
|
||||
Span<byte> buffer = stackalloc byte[RemovePacketLength];
|
||||
Span<byte> buffer = stackalloc byte[RemovePacketLength].InitializePacket();
|
||||
CreateRemoveHairPacket(buffer, hairSerial);
|
||||
ns.Send(buffer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue