fix: giving not working for numbers greater than 99 (#2596)

This commit is contained in:
Owenn
2026-07-31 00:07:30 -05:00
committed by GitHub
parent 4c0a40499e
commit 3190f9ea72

View File

@@ -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()),
],