Skip to content

Fix javaY precision#6435

Merged
onebeastchris merged 4 commits into
GeyserMC:masterfrom
SamB440:fix/java-y
Jun 1, 2026
Merged

Fix javaY precision#6435
onebeastchris merged 4 commits into
GeyserMC:masterfrom
SamB440:fix/java-y

Conversation

@SamB440
Copy link
Copy Markdown
Contributor

@SamB440 SamB440 commented May 30, 2026

The previous solution caused coordinates like 70.9999999816513. With this change, coordinates are now correctly 71.0 and the previous y=2 bug remains fixed.

Also reverts a change that made player offsets 1.62f instead of 1.62001f. The bedrock player still sends an offset of 1.62001f which can be shown by printing the packet position they send.

EntityDefinition<AvatarEntity> avatarEntityBase = EntityDefinition.<AvatarEntity>inherited(null, livingEntityBase)
.height(1.8f).width(0.6f)
.offset(1.62f)
.offset(1.62001f)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's mark why we're doing this? E.G. "Player offset sent by Bedrock. Verified on Bedrock 26.23".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread core/src/main/java/org/geysermc/geyser/level/physics/CollisionManager.java Outdated
Comment thread core/src/main/java/org/geysermc/geyser/level/physics/CollisionManager.java Outdated
Copy link
Copy Markdown
Member

@onebeastchris onebeastchris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@onebeastchris onebeastchris merged commit f66aec3 into GeyserMC:master Jun 1, 2026
2 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.

3 participants