mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2025-02-27 14:44:01 -05:00
Fixed uuid
This commit is contained in:
parent
78f0ea8fb9
commit
25419343ba
1 changed files with 5 additions and 1 deletions
6
index.js
6
index.js
|
@ -187,7 +187,11 @@ function createServer(options) {
|
|||
}
|
||||
|
||||
function loginClient() {
|
||||
client.write(0x02, {uuid: (client.uuid || 0).toString(10), username: client.username});
|
||||
var isException = !!server.onlineModeExceptions[client.username.toLowerCase()];
|
||||
if (onlineMode == false || isException) {
|
||||
client.uuid = "0-0-0-0-0";
|
||||
}
|
||||
client.write(0x02, {uuid: (client.uuid).toString(10), username: client.username});
|
||||
client.state = states.PLAY;
|
||||
loggedIn = true;
|
||||
startKeepAlive();
|
||||
|
|
Loading…
Reference in a new issue