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)
|
||||
return console.warn("go init: movements already initialized!", movements)
|
||||
}
|
||||
let defaultMove = new Movements(bot, mcData)
|
||||
defaultMove.canDig = false
|
||||
defaultMove.scafoldingBlocks.push(mcData.blocksByName.slime_block.id)
|
||||
defaultMove.blocksCantBreak.add(mcData.blocksByName.glass.id)
|
||||
defaultMove.blocksToAvoid.add(mcData.blocksByName.magma_block.id)
|
||||
movements.push(defaultMove)
|
||||
const normalMove = new Movements(bot, mcData)
|
||||
normalMove.canDig = false
|
||||
normalMove.scafoldingBlocks.push(mcData.blocksByName.slime_block.id)
|
||||
normalMove.blocksCantBreak.add(mcData.blocksByName.glass.id)
|
||||
normalMove.blocksToAvoid.add(mcData.blocksByName.magma_block.id)
|
||||
movements.push(normalMove)
|
||||
movements.defaultMove = movements[0]
|
||||
|
||||
bot.pathfinder.setMovements(defaultMove)
|
||||
|
|
Loading…
Reference in New Issue
Block a user