Skip to content

Commit 266af67

Browse files
authored
Resolved type mismatch (#3748)
1 parent 5e35bf9 commit 266af67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/entities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ function inject (bot) {
348348
bot._client.on('sync_entity_position', (packet) => {
349349
const entity = fetchEntity(packet.entityId)
350350
entity.position.set(packet.x, packet.y, packet.z)
351-
entity.velocity.update(packet.dx, packet.dy, packet.dz)
351+
entity.velocity.set(packet.dx, packet.dy, packet.dz)
352352
entity.yaw = packet.yaw
353353
entity.pitch = packet.pitch
354354
bot.emit('entityMoved', entity)

0 commit comments

Comments
 (0)