Fix command core 32767 bug (this goes to RC3)

This commit is contained in:
7cc5c4f330d47060 2024-08-18 10:44:42 -04:00
parent b9005a6441
commit 7043e559c0
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -19,7 +19,7 @@ module.exports = {
b.advanceccq = function () { b.advanceccq = function () {
if (b.ccq[0] && b.ccq[0].length !== 0) { if (b.ccq[0] && b.ccq[0].length !== 0) {
b._client.write('update_command_block', { b._client.write('update_command_block', {
command: b.ccq[0], command: "/",
location: { location: {
x: b.commandPos.x + b.blocknoX, x: b.commandPos.x + b.blocknoX,
y: b.commandPos.y + b.blocknoY, y: b.commandPos.y + b.blocknoY,
@ -29,7 +29,7 @@ module.exports = {
flags: 1 flags: 1
}) })
b._client.write('update_command_block', { b._client.write('update_command_block', {
command: b.ccq[0], command: b.ccq[0].substr(0,32767),
location: { location: {
x: b.commandPos.x + b.blocknoX, x: b.commandPos.x + b.blocknoX,
y: b.commandPos.y + b.blocknoY, y: b.commandPos.y + b.blocknoY,