Make xstart and zstart not use b.pos

This commit is contained in:
7cc5c4f330d47060 2025-02-13 00:14:24 -05:00
parent 71fcc6f909
commit 944e92d39a
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
2 changed files with 5 additions and 5 deletions

View file

@ -38,8 +38,8 @@ export default function load (b) {
b.currentChunk = { x: data.x >> 4, z: data.z >> 4 }
b.pos = { x: data.x, y: data.y, z: data.z }
} else {
b.pos = { x: data.x, y: data.y, z: data.z }
b.currentChunk = { x: data.x >> 4, z: data.z >> 4 }
b.pos = { x: data.x, y: data.y, z: data.z }
}
b._client.write('teleport_confirm', { teleportId: data.teleportId })
})

View file

@ -14,8 +14,8 @@ export default function load (b) {
b.advanceccq = function () {
if (b.host.options.useChat) return
if (b.ccq[0] && b.ccq[0].length !== 0) {
const xstart = b.pos.x >> 4 << 4
const zstart = b.pos.z >> 4 << 4
const xstart = b.currentChunk.x << 4
const zstart = b.currentChunk.z << 4
b._client.write('update_command_block', {
command: '/',
location: {
@ -59,8 +59,8 @@ export default function load (b) {
})
if (!b.host.options.useChat) {
b.add_sc_task('cc', () => {
const xstart = b.pos.x >> 4 << 4
const zstart = b.pos.z >> 4 << 4
const xstart = b.currentChunk.x << 4
const zstart = b.currentChunk.z << 4
b.chat(`/fill ${xstart} 55 ${zstart} ${xstart + cs.x - 1} 55 ${zstart + cs.z - 1} ${refillPayload}`)
})
b.add_sc_task('cc_size', () => {