mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix: giving not working for numbers greater than 99 (#2596)
This commit is contained in:
@@ -92,7 +92,7 @@ impl CommandExecutor for Executor {
|
||||
.add_child(TextComponent::text("]"))
|
||||
.hover_event(HoverEvent::ShowItem {
|
||||
id: item_name.to_string().into(),
|
||||
count: Some(item_count),
|
||||
count: Some(item_count.min(99)),
|
||||
}),
|
||||
targets[0].get_display_name().await,
|
||||
],
|
||||
@@ -108,7 +108,7 @@ impl CommandExecutor for Executor {
|
||||
.add_child(TextComponent::text("]"))
|
||||
.hover_event(HoverEvent::ShowItem {
|
||||
id: item_name.to_string().into(),
|
||||
count: Some(item_count),
|
||||
count: Some(item_count.min(99)),
|
||||
}),
|
||||
TextComponent::text(targets.len().to_string()),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user