From 808b5a01499cf9ee35f136aba42aff303efbc08f Mon Sep 17 00:00:00 2001 From: Romain Beaumont Date: Sat, 21 Nov 2015 00:02:41 +0100 Subject: [PATCH] remove player specific updateAndSpawn since this is already happening for all entities --- src/lib/plugins/login.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lib/plugins/login.js b/src/lib/plugins/login.js index 5807181..7406cd2 100644 --- a/src/lib/plugins/login.js +++ b/src/lib/plugins/login.js @@ -43,14 +43,6 @@ module.exports.player=function(player,serv) player.loadedChunks={}; } - function sendPlayersWhenMove() - { - player.on("positionChanged",() => { - if(player.position.distanceTo(player.lastPositionPlayersUpdated)>2*32) - player.updateAndSpawn(); - }); - } - function sendLogin() { // send init data so client will start rendering world @@ -169,7 +161,6 @@ module.exports.player=function(player,serv) announceJoin(); player.emit("spawned"); - sendPlayersWhenMove(); await player.waitPlayerLogin(); player.sendRestMap();