mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-24 09:11:43 +00:00
add a sleep between each chunk write
This commit is contained in:
parent
717de0d409
commit
414c27ddcb
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ function inject(serv,player)
|
||||||
})
|
})
|
||||||
.reduce((acc,{chunkX,chunkZ})=>
|
.reduce((acc,{chunkX,chunkZ})=>
|
||||||
acc
|
acc
|
||||||
//.then(() => sleep(10))
|
.then(() => sleep(10))
|
||||||
.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