diff --git a/src/client.ts b/src/client.ts index 9280ea0..7ea3200 100644 --- a/src/client.ts +++ b/src/client.ts @@ -171,7 +171,7 @@ export default abstract class CollabVMClient { // Handle renames if (message[0] === "rename") { let oldname; - if (message[1] == "1") { + if (message[1] == "0") { oldname = this._username; this._username = message[3]; } else oldname = message[2];