This commit is contained in:
ChomeNS 2022-12-01 20:05:09 +07:00
parent b0e158de84
commit c36d3fdca3

View file

@ -1,5 +1,6 @@
/* eslint-disable require-jsdoc */
function inject (bot) {
bot.position = { x: 0, y: 0, z: 0 }
bot._client.on('position', (position) => {
bot.position = position
bot.write('teleport_confirm', { teleportId: position.teleportId })