postion -> position

This commit is contained in:
StripedMonkey committed 2024-08-23 07:56:41 -04:00
1 parent f56b566afb
commit dbe3964e41
2 files changed
+6 -3

No files matched your search

@@ -5,7 +5,7 @@ use crate::VarInt;
#[derive(Serialize)] #[derive(Serialize)]
#[packet(0x40)] #[packet(0x40)]
pub struct CSyncPlayerPostion { pub struct CSyncPlayerPosition {
x: f64, x: f64,
y: f64, y: f64,
z: f64, z: f64,
@@ -15,7 +15,7 @@ pub struct CSyncPlayerPostion {
teleport_id: VarInt, teleport_id: VarInt,
} }
impl CSyncPlayerPostion { impl CSyncPlayerPosition {
pub fn new( pub fn new(
x: f64, x: f64,
y: f64, y: f64,
+4 -1
View File
@@ -19,7 +19,10 @@ use pumpkin_protocol::{
client::{ client::{
config::CConfigDisconnect, config::CConfigDisconnect,
login::CLoginDisconnect, login::CLoginDisconnect,
play::{CGameEvent, CPlayDisconnect, CSetContainerContent, CSyncPlayerPosition, CSystemChatMessage}, play::{
CGameEvent, CPlayDisconnect, CSetContainerContent, CSyncPlayerPosition,
CSystemChatMessage,
},
}, },
packet_decoder::PacketDecoder, packet_decoder::PacketDecoder,
packet_encoder::PacketEncoder, packet_encoder::PacketEncoder,