fix: Fixes more packet initializations (#1507)

This commit is contained in:
Kamron Batman 2023-09-19 00:02:17 -07:00 committed by GitHub
parent 0bec97639f
commit 2a3e048b86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 23 deletions

View file

@ -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);
}