Force chat for old MC versions
This commit is contained in:
parent
57e84ef53a
commit
97767b6aa5
1 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
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,
|
||||
|
@ -8,6 +9,9 @@ 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
|
||||
|
|
Loading…
Reference in a new issue