diff --git a/pumpkin-protocol/src/lib.rs b/pumpkin-protocol/src/lib.rs index 4381934b4..aea2e4891 100644 --- a/pumpkin-protocol/src/lib.rs +++ b/pumpkin-protocol/src/lib.rs @@ -193,14 +193,14 @@ pub trait ServerPacket: Packet + Sized { pub struct StatusResponse { /// The version on which the Server is running. Optional pub version: Option, - /// Informations about currently connected Players. Optional + /// Information about currently connected Players. Optional pub players: Option, /// The description displayed also called MOTD (Message of the day). Optional pub description: String, /// The icon displayed, Optional pub favicon: Option, /// Players are forced to use Secure chat - pub enforece_secure_chat: bool, + pub enforce_secure_chat: bool, } #[derive(Serialize)] pub struct Version { @@ -216,7 +216,7 @@ pub struct Players { pub max: u32, /// The current online player count pub online: u32, - /// Informations about currently connected players. + /// Information about currently connected players. /// Note player can disable listing here. pub sample: Vec, } @@ -229,7 +229,7 @@ pub struct Sample { pub id: String, } -// basicly game profile +// basically game profile #[derive(Serialize, Deserialize, Clone, Debug)] pub struct Property { pub name: String, diff --git a/pumpkin/src/client/mod.rs b/pumpkin/src/client/mod.rs index 9dc174072..af7f2ec9f 100644 --- a/pumpkin/src/client/mod.rs +++ b/pumpkin/src/client/mod.rs @@ -81,7 +81,7 @@ impl Default for PlayerConfig { } } -/// Everything which makes a Conection with our Server is a `Client`. +/// Everything which makes a Connection with our Server is a `Client`. /// Client will become Players when they reach the `Play` state pub struct Client { /// The client's game profile information. diff --git a/pumpkin/src/entity/mod.rs b/pumpkin/src/entity/mod.rs index d80b2244d..68c323a6b 100644 --- a/pumpkin/src/entity/mod.rs +++ b/pumpkin/src/entity/mod.rs @@ -123,7 +123,7 @@ impl Entity { /// Kills the Entity /// - /// This is simliar to `kill` but Spawn Particles, Animation and plays death sound + /// This is similar to `kill` but Spawn Particles, Animation and plays death sound pub fn kill(&self) { // Spawns death smoke particles self.world diff --git a/pumpkin/src/entity/player.rs b/pumpkin/src/entity/player.rs index 252d4dcc4..66be814de 100644 --- a/pumpkin/src/entity/player.rs +++ b/pumpkin/src/entity/player.rs @@ -237,7 +237,7 @@ impl Player { "Setting the same gamemode as already is" ); self.gamemode.store(gamemode); - // So a little story time. I actually made an abitlties_from_gamemode function. I looked at vanilla and they always send the abilties from the gamemode. But the funny thing actually is. That the client + // So a little story time. I actually made an abilties_from_gamemode function. I looked at vanilla and they always send the abilties from the gamemode. But the funny thing actually is. That the client // does actually use the same method and set the abilties when receiving the CGameEvent gamemode packet. Just Mojang nonsense self.entity .world diff --git a/pumpkin/src/server/connection_cache.rs b/pumpkin/src/server/connection_cache.rs index a8268ba3a..49a65c4c2 100644 --- a/pumpkin/src/server/connection_cache.rs +++ b/pumpkin/src/server/connection_cache.rs @@ -80,7 +80,7 @@ impl CachedStatus { }), description: config.motd.clone(), favicon: icon, - enforece_secure_chat: false, + enforce_secure_chat: false, } } diff --git a/pumpkin/src/world/mod.rs b/pumpkin/src/world/mod.rs index b61ddc868..308ce4abf 100644 --- a/pumpkin/src/world/mod.rs +++ b/pumpkin/src/world/mod.rs @@ -220,7 +220,7 @@ impl World { .client .send_packet(&CGameEvent::new(GameEvent::StartWaitingChunks, 0.0)); - // Spawn in inital chunks + // Spawn in initial chunks player_chunker::player_join(self, player.clone()).await; }