From b5b803e1e84ec3c89102d188cf2b260ca4abf6d0 Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+ChipmunkMC@users.noreply.github.com> Date: Mon, 24 Jun 2024 12:16:27 -0400 Subject: [PATCH] Fix the new position plugin --- plugins/position.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/position.js b/plugins/position.js index fda43f3..5217169 100644 --- a/plugins/position.js +++ b/plugins/position.js @@ -1,7 +1,7 @@ function inject (bot) { bot.position = { x: null, y: null, z: null, yaw: null, pitch: null } // to prevent errors i guess - bot._client.on('position', (packet) => { + bot.on('packet.position', (packet) => { const oldPos = { ...bot.position } bot.position.x = packet.x + bot.position.x * !!(packet.flags & 1)