mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-28 21:52:17 -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!");
|
client.end("Failed to verify username!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
client.UUID = uuid;
|
client.uuid = uuid;
|
||||||
loginClient();
|
loginClient();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function 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;
|
client.state = states.PLAY;
|
||||||
loggedIn = true;
|
loggedIn = true;
|
||||||
startKeepAlive();
|
startKeepAlive();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user