mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 06:21:08 +00:00
fix chunk sending, fix #124
This commit is contained in:
parent
804ddee7c1
commit
f250e4b2a4
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ module.exports.player=function(player,serv)
|
|||
|
||||
function sendChunkWhenMove()
|
||||
{
|
||||
player.on("positionChanged", () => {
|
||||
player.on("move", () => {
|
||||
if(!player.sendingChunks && player.position.distanceTo(player.lastPositionChunkUpdated)>16*32)
|
||||
player.sendRestMap();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue