Skip to content

Commit

Permalink
Merge branch 'master' into license
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowiiii committed Sep 8, 2024
2 parents 37a5c9f + c6f561e commit 295560b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pumpkin/src/client/client_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ impl Client {
}

fn is_valid_player_name(name: &str) -> bool {
name.len() <= 16 && name.chars().all(|c| c > 32 as char && c < 127 as char)
name.len() <= 16
&& name
.chars()
.all(|c| c > 32 as u8 as char && c < 127 as u8 as char)
}

pub fn handle_login_start(&mut self, server: &mut Server, login_start: SLoginStart) {
Expand Down
5 changes: 4 additions & 1 deletion pumpkin/src/client/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ impl Player {
}
self.mouse_drag(drag_handler, opened_container.as_deref_mut(), drag_state)
}
ClickType::DropType(_drop_type) => {dbg!("todo"); Ok(())},
ClickType::DropType(_drop_type) => {
dbg!("todo");
Ok(())
}
}?;
if let Some(mut opened_container) = opened_container {
if update_whole_container {
Expand Down

0 comments on commit 295560b

Please sign in to comment.