fix: super

This commit is contained in:
cha0s 2021-01-21 08:24:12 -06:00
parent 61b2c08dac
commit aab17617c0

View File

@ -36,14 +36,14 @@ export default (key) => (Superclass) => {
? (data) => {
// eslint-disable-next-line no-param-reassign
data[key] = packToUint32(data[key]);
return data;
return Superclass.pack(data);
}
: (data) => packToUint32(data);
PackedVectorPacket.unpack = key
? (data) => {
// eslint-disable-next-line no-param-reassign
data[key] = unpackFromUint32(data[key]);
return data;
return Superclass.pack(data);
}
: (data) => unpackFromUint32(data);
return PackedVectorPacket;