Skip to content

Added type on move event#2712

Merged
rom1504 merged 1 commit into
PrismarineJS:masterfrom
sefirosweb:fix_move_type_event
Aug 7, 2022
Merged

Added type on move event#2712
rom1504 merged 1 commit into
PrismarineJS:masterfrom
sefirosweb:fix_move_type_event

Conversation

@sefirosweb
Copy link
Copy Markdown
Contributor

The position of event move is missing in type

The event of move all time is emited with Vec3 type:

bot.emit('move', oldPos)

bot.emit('move', oldPos)

const oldPos = new Vec3(lastSent.x, lastSent.y, lastSent.z)
lastSent.x = position.x
lastSent.y = position.y
lastSent.z = position.z
lastSent.yaw = yaw
lastSent.pitch = pitch
lastSent.onGround = onGround
bot._client.write('position_look', lastSent)
bot.emit('move', oldPos)

@rom1504 rom1504 merged commit 3358e4b into PrismarineJS:master Aug 7, 2022
@sefirosweb sefirosweb deleted the fix_move_type_event branch January 28, 2023 14:13
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

Successfully merging this pull request may close these issues.

2 participants