fix(mover): 🎨 fix quiet not being "followed"

cover
jay 3 years ago
parent fc43985337
commit d953bd4cf6
  1. 12
      lib/plugins/mover.js

@ -67,12 +67,12 @@ function follow(entity, dynamic = true, distance = 3) {
console.assert(entity)
const { GoalFollow } = require('mineflayer-pathfinder').goals
cfg.quiet && console.log(entity)
|| bot.chat(
`following ${entity.type
}: ${entity.username || entity.displayName
}${dynamic ? "" : " once"}`
)
// console.log(entity)
cfg.quiet || bot.chat(
`following ${entity.type
}: ${entity.username || entity.displayName
}${dynamic ? "" : " once"}`
)
entity = entity.entity ? entity.entity : entity

Loading…
Cancel
Save