refactor(mover): ♻️ use a better name for default move
This commit is contained in:
parent
4b3e58ceb3
commit
1b21fcb096
|
@ -15,12 +15,12 @@ function initMoves(bot = bot, mcData = bot.mcData) {
|
||||||
bot.pathfinder.setMovements(movements.defaultMove)
|
bot.pathfinder.setMovements(movements.defaultMove)
|
||||||
return console.warn("go init: movements already initialized!", movements)
|
return console.warn("go init: movements already initialized!", movements)
|
||||||
}
|
}
|
||||||
let defaultMove = new Movements(bot, mcData)
|
const normalMove = new Movements(bot, mcData)
|
||||||
defaultMove.canDig = false
|
normalMove.canDig = false
|
||||||
defaultMove.scafoldingBlocks.push(mcData.blocksByName.slime_block.id)
|
normalMove.scafoldingBlocks.push(mcData.blocksByName.slime_block.id)
|
||||||
defaultMove.blocksCantBreak.add(mcData.blocksByName.glass.id)
|
normalMove.blocksCantBreak.add(mcData.blocksByName.glass.id)
|
||||||
defaultMove.blocksToAvoid.add(mcData.blocksByName.magma_block.id)
|
normalMove.blocksToAvoid.add(mcData.blocksByName.magma_block.id)
|
||||||
movements.push(defaultMove)
|
movements.push(normalMove)
|
||||||
movements.defaultMove = movements[0]
|
movements.defaultMove = movements[0]
|
||||||
|
|
||||||
bot.pathfinder.setMovements(defaultMove)
|
bot.pathfinder.setMovements(defaultMove)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user