fix: decoration

This commit is contained in:
cha0s 2021-01-13 01:07:44 -06:00
parent 3ebd3ff3bf
commit 96b25d94b3
2 changed files with 8 additions and 2 deletions

View File

@ -6,4 +6,8 @@ const decorate = compose(
Vector.Packer(),
);
export default () => class TraitUpdatePositionedPositionPacket extends decorate(Packet) {};
const TraitUpdatePositionedPositionPacket = () => (
class TraitUpdatePositionedPositionPacket extends decorate(Packet) {}
);
export default () => decorate(TraitUpdatePositionedPositionPacket());

View File

@ -6,7 +6,7 @@ const decorate = compose(
Vector.Packer('position'),
);
export default () => class TilesUpdatePacket extends decorate(Packet) {
const TilesUpdatePacket = () => class TilesUpdatePacket extends Packet {
static get data() {
return {
@ -15,3 +15,5 @@ export default () => class TilesUpdatePacket extends decorate(Packet) {
}
};
export default () => decorate(TilesUpdatePacket());