diff --git a/src/network.rs b/src/network.rs index 82ae7d5..57f8cf2 100644 --- a/src/network.rs +++ b/src/network.rs @@ -68,7 +68,7 @@ pub fn handle_client( } let mut verif_key = [0; 64]; - verif_key.copy_from_slice(&payload_buffer[65..(64+65)]); + verif_key.copy_from_slice(&payload_buffer[65..(64 + 65)]); let mut verif_key_formatted = String::new(); use std::fmt::Write; diff --git a/src/world.rs b/src/world.rs index d8bc936..6550c1a 100644 --- a/src/world.rs +++ b/src/world.rs @@ -23,8 +23,8 @@ impl World { for _x in 0..size_x { match y { 0..15 => world_dat.push(0x03), // Dirt - 15 => world_dat.push(0x02), // Grass - _ => world_dat.push(0x00), // Air + 15 => world_dat.push(0x02), // Grass + _ => world_dat.push(0x00), // Air } } }