refactor(mover): 🔊 improve debug logging code
This commit is contained in:
parent
c42a3a2304
commit
8e854a0a2f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user