mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-24 17:21:43 +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={};
|
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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue