remove player specific updateAndSpawn since this is already happening for all entities

This commit is contained in:
Romain Beaumont 2015-11-21 00:02:41 +01:00
parent 4d267adb48
commit 808b5a0149

View file

@ -43,14 +43,6 @@ module.exports.player=function(player,serv)
player.loadedChunks={}; player.loadedChunks={};
} }
function sendPlayersWhenMove()
{
player.on("positionChanged",() => {
if(player.position.distanceTo(player.lastPositionPlayersUpdated)>2*32)
player.updateAndSpawn();
});
}
function sendLogin() function sendLogin()
{ {
// send init data so client will start rendering world // send init data so client will start rendering world
@ -169,7 +161,6 @@ module.exports.player=function(player,serv)
announceJoin(); announceJoin();
player.emit("spawned"); player.emit("spawned");
sendPlayersWhenMove();
await player.waitPlayerLogin(); await player.waitPlayerLogin();
player.sendRestMap(); player.sendRestMap();