Update types, add authTitle option to relay, client renderDistance -> viewDistance

This commit is contained in:
extremeheat 2021-05-29 21:09:51 -04:00
commit 5af828bcb7
6 changed files with 73 additions and 15 deletions

View file

@ -1,4 +1,4 @@
const { Relay } = require('../src/relay')
const { Relay, title } = require('bedrock-protocol')
function createRelay () {
console.log('Creating relay')
@ -7,10 +7,13 @@ function createRelay () {
/* host and port for clients to listen to */
host: '0.0.0.0',
port: 19130,
offline: false,
authTitle: title.MinecraftNintendoSwitch,
/* Where to send upstream packets to */
destination: {
host: '127.0.0.1',
port: 19132
port: 19132,
offline: false
}
})
relay.conLog = console.debug