Update types, add authTitle option to relay, client renderDistance -> viewDistance
This commit is contained in:
parent
6a7ad6ab98
commit
5af828bcb7
6 changed files with 73 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue