mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-14 10:44:55 -05:00
fix
This commit is contained in:
parent
b0e158de84
commit
c36d3fdca3
1 changed files with 1 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
/* eslint-disable require-jsdoc */
|
/* eslint-disable require-jsdoc */
|
||||||
function inject (bot) {
|
function inject (bot) {
|
||||||
|
bot.position = { x: 0, y: 0, z: 0 }
|
||||||
bot._client.on('position', (position) => {
|
bot._client.on('position', (position) => {
|
||||||
bot.position = position
|
bot.position = position
|
||||||
bot.write('teleport_confirm', { teleportId: position.teleportId })
|
bot.write('teleport_confirm', { teleportId: position.teleportId })
|
||||||
|
|
Loading…
Reference in a new issue