refactor(mover): 🔊 improve debug logging code

This commit is contained in:
jay 2021-04-07 06:37:26 +05:00
parent c42a3a2304
commit 8e854a0a2f

View File

@ -11,10 +11,9 @@ let movements = []
function initMoves(bot = bot, mcData = bot.mcData) {
console.info(movements)
if (movements.length > 0) {
bot.pathfinder.setMovements(movements.defaultMove)
return console.warn("movements already initialized!")
return console.warn("go init: movements already initialized!", movements)
}
let defaultMove = new Movements(bot, mcData)
defaultMove.canDig = false