mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 06:03:33 -04:00
Quickfix : type in UUID field
This commit is contained in:
parent
c1a5b8294b
commit
879dd3a5e4
4
index.js
4
index.js
@ -177,14 +177,14 @@ function createServer(options) {
|
||||
client.end("Failed to verify username!");
|
||||
return;
|
||||
}
|
||||
client.UUID = uuid;
|
||||
client.uuid = uuid;
|
||||
loginClient();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function loginClient() {
|
||||
client.write(0x02, {uuid: (client.UUID | 0).toString(10), username: client.username});
|
||||
client.write(0x02, {uuid: (client.uuid | 0).toString(10), username: client.username});
|
||||
client.state = states.PLAY;
|
||||
loggedIn = true;
|
||||
startKeepAlive();
|
||||
|
Loading…
x
Reference in New Issue
Block a user