mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-05 19:20:54 +00:00
increase the kickTimeout to 10min, fix "disconnected" infinite world bug
This commit is contained in:
parent
587ce76f27
commit
2424dac368
2 changed files with 3 additions and 2 deletions
3
app.js
3
app.js
|
|
@ -12,7 +12,8 @@ var options = {
|
||||||
'online-mode': settings.onlineMode,
|
'online-mode': settings.onlineMode,
|
||||||
gameMode:settings.gameMode,
|
gameMode:settings.gameMode,
|
||||||
commands: commands,
|
commands: commands,
|
||||||
logging:settings.logging
|
logging:settings.logging,
|
||||||
|
kickTimeout:10*60*1000
|
||||||
};
|
};
|
||||||
|
|
||||||
mcServer.createMCServer(options);
|
mcServer.createMCServer(options);
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ function inject(serv,player)
|
||||||
})
|
})
|
||||||
.reduce((acc,{chunkX,chunkZ})=>
|
.reduce((acc,{chunkX,chunkZ})=>
|
||||||
acc
|
acc
|
||||||
.then(() => sleep(100))
|
//.then(() => sleep(100))
|
||||||
.then(() => serv.world.getColumn(chunkX,chunkZ))
|
.then(() => serv.world.getColumn(chunkX,chunkZ))
|
||||||
.then((column) => sendChunk(chunkX,chunkZ,column))
|
.then((column) => sendChunk(chunkX,chunkZ,column))
|
||||||
,Promise.resolve());
|
,Promise.resolve());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue