mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-04 02:30:36 +00:00
handle player set view distance, fix #76
This commit is contained in:
parent
6b86cf5e9a
commit
d7aa0bca83
1 changed files with 3 additions and 0 deletions
|
|
@ -4,4 +4,7 @@ function inject(serv,player)
|
||||||
{
|
{
|
||||||
player.gameMode=serv.gameMode;
|
player.gameMode=serv.gameMode;
|
||||||
player.spawnPoint=serv.getSpawnPoint();
|
player.spawnPoint=serv.getSpawnPoint();
|
||||||
|
player._client.on('settings',({viewDistance}) => {
|
||||||
|
player.view=viewDistance;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue