Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had a code that made my bot fish, it worked, but when I rewrote it into classes, it began to give an error "Cannot read properties of undefined (reading 'entity')" in the onCollect function. I checked and the entity is being passed. I play on 1.20.1
`const {pathfinder, Movements, goals : {GoalNear, GoalFollow}} = require('mineflayer-pathfinder');
let nowFishing = false;
module.exports = class Fishing {
static bot;
static mcData;
}
`
Beta Was this translation helpful? Give feedback.
All reactions