mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-22 23:08:30 +01:00
parent
1b17c6bd8e
commit
63e60bc93c
1 changed files with 8 additions and 0 deletions
|
@ -58,6 +58,14 @@ public class BedrockMovePlayerTranslator extends PacketTranslator<MovePlayerPack
|
||||||
session.confirmTeleport(packet.getPosition().toDouble().sub(0, EntityDefinitions.PLAYER.offset(), 0));
|
session.confirmTeleport(packet.getPosition().toDouble().sub(0, EntityDefinitions.PLAYER.offset(), 0));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (entity.getBedPosition() != null) {
|
||||||
|
// https://github.com/GeyserMC/Geyser/issues/5001
|
||||||
|
// Bedrock 1.20.22 started sending a MovePlayerPacket as soon as it got into a bed.
|
||||||
|
// This trips up Fabric.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
float yaw = packet.getRotation().getY();
|
float yaw = packet.getRotation().getY();
|
||||||
float pitch = packet.getRotation().getX();
|
float pitch = packet.getRotation().getX();
|
||||||
float headYaw = packet.getRotation().getY();
|
float headYaw = packet.getRotation().getY();
|
||||||
|
|
Loading…
Reference in a new issue