1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-04 15:31:36 +00:00

Fix: pose de-sync (#5591)

* Fixed pose de-sync.

* Check for last pose.
This commit is contained in:
oryxel
2025-06-16 17:40:26 +07:00
committed by GitHub
parent ec7a3dbd2f
commit 42ff733f2a

View File

@@ -1312,7 +1312,7 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
}
private void switchPose(boolean value, EntityFlag flag, Pose pose) {
this.pose = value ? pose : Pose.STANDING;
this.pose = value ? pose : this.pose == pose ? Pose.STANDING : this.pose;
playerEntity.setDimensionsFromPose(this.pose);
playerEntity.setFlag(flag, value);
playerEntity.updateBedrockMetadata();