Skip to content

Commit

Permalink
fix proof of concept suggestions replacing entire command
Browse files Browse the repository at this point in the history
  • Loading branch information
user622628252416 committed Nov 8, 2024
1 parent f54acf6 commit 5b1cece
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pumpkin/src/client/player_packet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,12 +647,12 @@ impl Player {
dbg!(&packet.command);
let response = CCommandSuggestions::new(
packet.id,
1,
packet.command.len() - 1,
packet.command.len(),
0,
vec![
("give".to_string(), None),
("test suggestion 1".to_string(), None),
(
"pumpkin".to_string(),
"test suggestion with tooltip".to_string(),
Some(
TextComponent::text("I am a tooltip")
.color_named(NamedColor::Red)
Expand Down

0 comments on commit 5b1cece

Please sign in to comment.