diff --git a/position.js b/position.js index 096f79b..dbee738 100644 --- a/position.js +++ b/position.js @@ -34,7 +34,7 @@ function inject(bot) { bot.position.pitch = flags & 16 ? (bot.position.pitch + pitch) : pitch bot.write('teleport_confirm', { teleportId }) - + const newPosition = { ...bot.position }; bot.emit('move', oldPosition, newPosition); });