From 4d213270868a0947858f327fa9036872fc1ac458 Mon Sep 17 00:00:00 2001 From: jay Date: Sat, 16 Jan 2021 13:57:21 +0500 Subject: [PATCH] fix(mover): :children_crossing: better messages --- lib/plugins/mover.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/plugins/mover.js b/lib/plugins/mover.js index 9c40b01..854bb7c 100644 --- a/lib/plugins/mover.js +++ b/lib/plugins/mover.js @@ -30,22 +30,22 @@ function initMoves(bot = bot, mcData = bot.mcData) { function moveNear(pos, distance = 3) { const { GoalNear } = require('mineflayer-pathfinder').goals - cfg.quiet || bot.chat(`moving to ${pos}`) pos = v(pos) + cfg.quiet || bot.chat(`moving to ${pos.floored()}`) bot.pathfinder.setMovements(movements.defaultMove) bot.pathfinder.setGoal(new GoalNear(pos.x, pos.y, pos.z, distance)) } function moveXZ(pos) { const { GoalXZ } = require('mineflayer-pathfinder').goals - cfg.quiet || bot.chat(`moving to ${pos}`) if (Array.isArray(pos) && pos.length == 2) { pos = v(pos[0], 0, pos[1]) } pos = v(pos) console.log(pos) + cfg.quiet || bot.chat(`moving to ${pos.floored()}`) bot.pathfinder.setMovements(movements.defaultMove) bot.pathfinder.setGoal(new GoalXZ(pos.x, pos.z)) }