increase the kickTimeout to 10min, fix "disconnected" infinite world bug

This commit is contained in:
Romain Beaumont 2015-10-09 00:23:34 +02:00
parent 587ce76f27
commit 2424dac368
2 changed files with 3 additions and 2 deletions

3
app.js
View file

@ -12,7 +12,8 @@ var options = {
'online-mode': settings.onlineMode,
gameMode:settings.gameMode,
commands: commands,
logging:settings.logging
logging:settings.logging,
kickTimeout:10*60*1000
};
mcServer.createMCServer(options);

View file

@ -76,7 +76,7 @@ function inject(serv,player)
})
.reduce((acc,{chunkX,chunkZ})=>
acc
.then(() => sleep(100))
//.then(() => sleep(100))
.then(() => serv.world.getColumn(chunkX,chunkZ))
.then((column) => sendChunk(chunkX,chunkZ,column))
,Promise.resolve());