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) {
|
function initMoves(bot = bot, mcData = bot.mcData) {
|
||||||
console.info(movements)
|
|
||||||
if (movements.length > 0) {
|
if (movements.length > 0) {
|
||||||
bot.pathfinder.setMovements(movements.defaultMove)
|
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)
|
let defaultMove = new Movements(bot, mcData)
|
||||||
defaultMove.canDig = false
|
defaultMove.canDig = false
|
||||||
|
|
Loading…
Reference in New Issue
Block a user