Skip to content

Commit

Permalink
refactor(GamePacket): update return type in copy method
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil committed Oct 12, 2024
1 parent 5e0d752 commit 3faae73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared-packets/src/GamePacket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class GamePacket extends BasePacket implements SerializableMessage {
* @param originalPacket - The original `GamePacket` to be copied.
* @param newData - An optional `Buffer` containing new data to be deserialized into the new packet.
* If not provided, the data from the original packet will be copied.
* @returns A new `ServerPacket` instance with the same message ID and header as the original,
* @returns A new `GamePacket` instance with the same message ID and header as the original,
* and either the deserialized new data or a copy of the original data.
*/
static copy(originalPacket: GamePacket, newData?: Buffer): GamePacket {
Expand Down

0 comments on commit 3faae73

Please sign in to comment.