From f7bce82c44d096a8bbbc0bb69c82b17e6afe4f11 Mon Sep 17 00:00:00 2001 From: memetrollsXD Date: Sun, 31 Jul 2022 11:46:36 +0200 Subject: [PATCH] goofy merge (skill) issues --- src/server/kcp/Packet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/kcp/Packet.ts b/src/server/kcp/Packet.ts index b7269cc..c1f61dc 100644 --- a/src/server/kcp/Packet.ts +++ b/src/server/kcp/Packet.ts @@ -37,7 +37,7 @@ export default class Packet { return str.startsWith("01234567") && str.endsWith("89abcdef"); } - public static encode(name: PacketType, body: {}, customCmdId?: number): Packet | null { + public static encode(name: PacketName, body: {}, customCmdId?: number): Packet | null { try { // @ts-ignore - Bullshit. You can just get enums by name const cmdid = CmdID[name];