Closed rom1504 closed 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
Be sure to npm install
after the update. I updated the vec3 dependency.
oh ok. thanks, it works
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)