1
0
Fork 0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-03-26 00:27:03 +01:00

When spawning don't add the player offset ()

Fixes falling when logging in
This commit is contained in:
bundabrg 2020-05-26 11:35:26 +08:00 committed by GitHub
parent 0178492b59
commit cc6c7fe78d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ public class JavaPlayerPositionRotationTranslator extends PacketTranslator<Serve
return;
if (!session.isSpawned()) {
Vector3f pos = Vector3f.from(packet.getX(), packet.getY() + EntityType.PLAYER.getOffset() + 0.1f, packet.getZ());
Vector3f pos = Vector3f.from(packet.getX(), packet.getY(), packet.getZ());
entity.setPosition(pos);
entity.setRotation(Vector3f.from(packet.getYaw(), packet.getPitch(), packet.getYaw()));