From db11cffe8075cb98a293a40a615a58837963b477 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 1 Oct 2019 22:42:04 -0500 Subject: [PATCH] chore: defaults --- packages/net/packet/packet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/net/packet/packet.js b/packages/net/packet/packet.js index 5a99ae0..4134b65 100644 --- a/packages/net/packet/packet.js +++ b/packages/net/packet/packet.js @@ -3,7 +3,7 @@ import schemapack from 'schemapack'; export class Packet { - constructor(data) { + constructor(data = {}) { this.data = data; }