Make xstart and zstart not use b.pos
This commit is contained in:
parent
71fcc6f909
commit
944e92d39a
2 changed files with 5 additions and 5 deletions
plugins
|
@ -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 })
|
||||
})
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue