forked from GeyserMC/Geyser
When spawning don't add the player offset (#655)
Fixes falling when logging in
This commit is contained in:
parent
0178492b59
commit
cc6c7fe78d
1 changed files with 1 additions and 1 deletions
|
@ -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()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue