mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-11 18:41:31 +00:00
remove player specific updateAndSpawn since this is already happening for all entities
This commit is contained in:
parent
4d267adb48
commit
808b5a0149
1 changed files with 0 additions and 9 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue