Remove code relating to legacy versions
This commit is contained in:
parent
d1573a1305
commit
1be6ea282e
2 changed files with 1 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
const uuidToInt = require('../util/uuidtoint.js')
|
||||
const plainParser = require('../util/chatparse_plain.js')
|
||||
const mcParser = require('../util/chatparse_mc.js')
|
||||
const protover = require('../util/getProtocolVersion.js')
|
||||
const cs = {
|
||||
x: 4,
|
||||
y: 6,
|
||||
|
@ -9,9 +8,6 @@ const cs = {
|
|||
}
|
||||
module.exports = {
|
||||
load: function (b) {
|
||||
if (protover(b._client.version) < 386) { // 1.13-pre4
|
||||
b.host.options.useChat = true // This does not support command blocks below 1.13
|
||||
}
|
||||
b.interval.commandFill = setInterval(() => { if (b.sc_tasks.cc) b.sc_tasks.cc.failed = 1 }, 150000)
|
||||
b.ccq = []
|
||||
b.blocknoX = 0
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
const protover = require('../util/getProtocolVersion.js')
|
||||
module.exports = {
|
||||
load: (b) => {
|
||||
b._client.on('login', () => {
|
||||
|
@ -9,10 +8,7 @@ module.exports = {
|
|||
}
|
||||
}, 100)
|
||||
})
|
||||
b.matcherRegex = /.{1,99}/g
|
||||
if (protover(b._client.version) >= 306) { // 16w38a
|
||||
b.matcherRegex = /.{1,255}/g
|
||||
}
|
||||
b.matcherRegex = /.{1,255}/g
|
||||
b.chatqueue = []
|
||||
b.chat = function chat (msg) {
|
||||
if (msg.length === 0) return
|
||||
|
|
Loading…
Reference in a new issue