mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -04:00
fix the test
This commit is contained in:
parent
12d17e2eaf
commit
d56b0776c4
@ -37,7 +37,7 @@ function createServer(options) {
|
|||||||
server.maxPlayers = options['max-players'] || 20;
|
server.maxPlayers = options['max-players'] || 20;
|
||||||
server.playerCount = 0;
|
server.playerCount = 0;
|
||||||
server.onlineModeExceptions = {};
|
server.onlineModeExceptions = {};
|
||||||
server.favicon = options.favicon || 0;
|
server.favicon = options.favicon || undefined;
|
||||||
server.on("connection", function(client) {
|
server.on("connection", function(client) {
|
||||||
client.once('set_protocol', onHandshake);
|
client.once('set_protocol', onHandshake);
|
||||||
client.once('login_start', onLogin);
|
client.once('login_start', onLogin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user