diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-12 03:24:51 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-13 21:57:51 +0200 |
commit | 1d52b0d0721094d7f8dfaabddedd9f08a5e456a5 (patch) | |
tree | 1136d2550f7f47f4eebd560251353f9c0cd98a6f /gateway/src/opcodes | |
parent | Push local state... (diff) | |
download | server-1d52b0d0721094d7f8dfaabddedd9f08a5e456a5.tar.xz |
Fix updated client stuff...
Diffstat (limited to 'gateway/src/opcodes')
-rw-r--r-- | gateway/src/opcodes/Identify.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts index 4e275592..ce4385a3 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts @@ -102,8 +102,9 @@ export async function onIdentify(this: WebSocket, data: Payload) { ]); if (!user) return this.close(CLOSECODES.Authentication_failed); - if (!user.settings) { + if (!user.settings) { //settings may not exist after updating... user.settings = new UserSettings(); + user.settings.id = user.id; await user.settings.save(); } |