mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 05:35:56 -04:00
Fixed uuid
This commit is contained in:
parent
78f0ea8fb9
commit
25419343ba
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…
x
Reference in New Issue
Block a user