From 3dbc6dae48a2e6751cc093fe5b0c41a783f9c88a Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 30 Jun 2020 18:01:20 -0500 Subject: [PATCH] fix: packet coding --- packages/net/packet/variant.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/net/packet/variant.js b/packages/net/packet/variant.js index 0aaf91d..a16eb18 100644 --- a/packages/net/packet/variant.js +++ b/packages/net/packet/variant.js @@ -16,8 +16,9 @@ export default function (Superclass) { } static unpack(packet) { - const data = super.unpack(packet); - return msgpack.decode(data); + const unpacked = super.unpack(packet); + unpacked.data = msgpack.decode(unpacked.data); + return unpacked; } }