Remove code relating to legacy versions

This commit is contained in:
7cc5c4f330d47060 2024-09-22 23:52:56 -04:00
parent d1573a1305
commit 1be6ea282e
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
2 changed files with 1 additions and 9 deletions

View file

@ -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

View file

@ -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