mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-16 13:01:12 +00:00
node 0.10 doesn't have listenerCount, don't use it
This commit is contained in:
parent
567b82c61c
commit
3bea548f82
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ module.exports.server=function(serv,options)
|
|||
client.on('error',error => serv.emit('clientError',client,error)));
|
||||
|
||||
serv._server.on('login', async (client) => {
|
||||
if(client.socket.listenerCount('end')==0) return; // TODO: should be fixed properly in nmp instead
|
||||
if(client.socket.listeners('end').length==0) return; // TODO: should be fixed properly in nmp instead
|
||||
try {
|
||||
var player = serv.initEntity('player', null, serv.overworld, new Vec3(0,0,0));
|
||||
player._client=client;
|
||||
|
|
|
|||
Loading…
Reference in a new issue