We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee4d7a commit 44f0017Copy full SHA for 44f0017
server/src/entity/entity_appearance.rs
@@ -96,7 +96,7 @@ pub struct PlayerAppearance {
96
}
97
98
impl PlayerAppearance {
99
-
+
100
pub fn new(
101
metadata: PlayerMetadata,
102
texture: &'static str,
@@ -146,7 +146,13 @@ impl<W: WorldExtension> EntityAppearance<W> for PlayerAppearance {
146
current_item: 0,
147
metadata: self.metadata,
148
});
149
- player.packet_buffer.write_packet(&EntityYawRotate {
+ player.write_packet(&EntityRotate {
150
+ entity_id: entity.id,
151
+ yaw: entity.yaw,
152
+ pitch: entity.pitch,
153
+ on_ground: false,
154
+ });
155
+ player.write_packet(&EntityYawRotate {
156
entity_id: entity.id,
157
yaw: entity.yaw,
158
0 commit comments