Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player position in API always includes 1.62f offset #5061

Open
RealTriassic opened this issue Sep 25, 2024 · 0 comments
Open

Player position in API always includes 1.62f offset #5061

RealTriassic opened this issue Sep 25, 2024 · 0 comments
Labels
API The issue/feature request relates to the Geyser API

Comments

@RealTriassic
Copy link

Describe the bug

It appears that when getting the player's position using GeyserConnection#entities().playerEntity().position() or even GeyserSession#getPlayerEntity().getPosition() if using Geyser's internals, a 1.62f offset that is set here is added to the y position that is returned.

To Reproduce

  1. Make a basic extension.
  2. Use GeyserConnection#entities().playerEntity().position() to get the player's position.
  3. Observe that the y position that is returned always is 1.62f larger than it should be.

Expected behaviour

The offset should not be applied, at least not to the API method, not sure about GeyserSession#getPlayerEntity().getPosition(), just mentioning it just incase that it isn't intentional.

Screenshots / Videos

No response

Server Version and Plugins

No response

Geyser Dump

No response

Geyser Version

2.4.3-b679 (git-master-7af5bac)

Minecraft: Bedrock Edition Device/Version

No response

Additional Context

I personally observed this on Geyser Standalone, but I assume that this happens on all platforms.

@Camotoy Camotoy added the API The issue/feature request relates to the Geyser API label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API The issue/feature request relates to the Geyser API
Projects
None yet
Development

No branches or pull requests

2 participants