Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example in readme.md and "multiple.js" doesn't work #104

Closed
miquelvidal opened this issue Jan 12, 2021 · 2 comments
Closed

Example in readme.md and "multiple.js" doesn't work #104

miquelvidal opened this issue Jan 12, 2021 · 2 comments

Comments

@miquelvidal
Copy link

I've tried main (readme.md) purposed example and multiple.js example

https://github.com/PrismarineJS/mineflayer-pathfinder/blob/master/examples/multiple.js

and doesn't work. But example "test.js" example works perfectly.

Multiple.js create bots, but when chat "follow" all bots hang's.

Error:
~/Documents/npm-minecraft/node_modules/mineflayer-pathfinder/examples$ node multiple.js

events.js:292
throw er; // Unhandled 'error' event
^
TypeError [Error]: Cannot read property 'x' of undefined
at /home/miquel/Documents/npm-minecraft/node_modules/mineflayer-pathfinder/lib/physics.js:103:28
at Physics.simulateUntil (/home/miquel/Documents/npm-minecraft/node_modules/mineflayer-pathfinder/lib/physics.js:24:7)
at Physics.canStraightLine (/home/miquel/Documents/npm-minecraft/node_modules/mineflayer-pathfinder/lib/physics.js:42:24)
at EventEmitter.monitorMovement (/home/miquel/Documents/npm-minecraft/node_modules/mineflayer-pathfinder/index.js:243:19)
at EventEmitter.emit (events.js:315:20)
at Timeout.doPhysics [as _onTimeout] (/home/miquel/Documents/npm-minecraft/node_modules/mineflayer/lib/plugins/physics.js:63:13)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
Emitted 'error' event on process instance at:
at emitUnhandledRejectionOrErr (internal/event_target.js:545:11)
at MessagePort.[nodejs.internal.kHybridDispatch] (internal/event_target.js:358:9)
at MessagePort.exports.emitMessage (internal/per_context/messageport.js:18:26)

@Karang
Copy link
Collaborator

Karang commented Jan 12, 2021

Thanks for reporting. It should be fixed now. (Update to 1.3.6)

@Karang Karang closed this as completed Jan 12, 2021
@miquelvidal
Copy link
Author

miquelvidal commented Jan 13, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants