PrismarineJS / mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.
https://prismarinejs.github.io/mineflayer/
MIT License
4.95k stars 904 forks source link

Problem with velocity.update #88

Closed rom1504 closed 11 years ago

rom1504 commented 11 years ago

I upgraded to the last version (0.0.8). Now i get this when i start the bot : .../bot/node_modules/mineflayer/lib/plugins/entities.js:161 entity.velocity.update(conv.fromNotchVelocity(notchVel)); ^ TypeError: Object (0, 0, 0) has no method 'update' at Client. (.../bot/node_modules/mineflayer/lib/plugins/entities.js:161:21) at Client.EventEmitter.emit (events.js:96:17) at Socket.Client.setSocket (.../bot/node_modules/minecraft-protocol/lib/client.js:34:12) at Socket.EventEmitter.emit (events.js:96:17) at TCP.onread (net.js:397:14)

rom1504 commented 11 years ago

replacing line 161 of entities.js by entity.velocity=conv.fromNotchVelocity(notchVel); and same thing line 171 it seems to be working

andrewrk commented 11 years ago

Be sure to npm install after the update. I updated the vec3 dependency.

rom1504 commented 11 years ago

oh ok. thanks, it works