mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-06 11:40:46 +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()
|
function sendChunkWhenMove()
|
||||||
{
|
{
|
||||||
player.on("positionChanged", () => {
|
player.on("move", () => {
|
||||||
if(!player.sendingChunks && player.position.distanceTo(player.lastPositionChunkUpdated)>16*32)
|
if(!player.sendingChunks && player.position.distanceTo(player.lastPositionChunkUpdated)>16*32)
|
||||||
player.sendRestMap();
|
player.sendRestMap();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue