Fixed uuid

This commit is contained in:
OverJT 2014-09-07 20:50:40 -05:00 committed by Robin Lambertz
parent 78f0ea8fb9
commit 25419343ba

View file

@ -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();