Move tagHost from options to client object

Ref https://github.com/PrismarineJS/node-minecraft-protocol/issues/338
Move all the plugin-mutable options to client
This commit is contained in:
deathcap 2016-02-06 23:31:10 -08:00
parent d059f23f90
commit 9423a2329d

View File

@ -12,7 +12,7 @@ module.exports = function(client, options) {
function next() {
let taggedHost = options.host;
if (options.tagHost) taggedHost += options.tagHost;
if (client.tagHost) taggedHost += client.tagHost;
client.write('set_protocol', {
protocolVersion: options.protocolVersion,