Skip to content

ray raycast block#10

Merged
GenerelSchwerz merged 1 commit intoGenerelSchwerz:masterfrom
zardoy:fix-raycast
Apr 7, 2025
Merged

ray raycast block#10
GenerelSchwerz merged 1 commit intoGenerelSchwerz:masterfrom
zardoy:fix-raycast

Conversation

@zardoy
Copy link

@zardoy zardoy commented Mar 29, 2025

right now bot.entity.height is not valid since server-side value is used
Instead it should always be computed client-side eg, wether shift is pressed or not.
issue is here:

entity.crouching = true

@GenerelSchwerz you can reproduce current issue by crouching and looking at cursor block on the web client on different angles (you will notice de-sync since camera is updated immediately)

I'm not fixing raycast entity for now as it seems to be a little more complicated (I'm using my own impl from mineflayer-mouse for now).

@zardoy
Copy link
Author

zardoy commented Mar 31, 2025

@GenerelSchwerz when

@GenerelSchwerz GenerelSchwerz merged commit 6ba735f into GenerelSchwerz:master Apr 7, 2025
1 of 24 checks passed
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