aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/plugins/inventory.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2025-08-04 20:43:10 -0500
committerGitHub <noreply@github.com>2025-08-04 20:43:10 -0500
commit23b7f20a0d88b54d430820baeb4a6da0316a009a (patch)
treef3e780515b3bbb9973d2b94338be6194b5ec0af3 /azalea-client/src/plugins/inventory.rs
parent827d943c3f27c65724ff83689b40c87d1cd1838c (diff)
downloadazalea-drasl-23b7f20a0d88b54d430820baeb4a6da0316a009a.tar.xz
Default components (#232)
* add default components * remove debug prints * clippy * use default components * fix tests
Diffstat (limited to 'azalea-client/src/plugins/inventory.rs')
-rw-r--r--azalea-client/src/plugins/inventory.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea-client/src/plugins/inventory.rs b/azalea-client/src/plugins/inventory.rs
index 8efc0e71..1662be9f 100644
--- a/azalea-client/src/plugins/inventory.rs
+++ b/azalea-client/src/plugins/inventory.rs
@@ -950,11 +950,7 @@ mod tests {
#[test]
fn test_simulate_shift_click_in_crafting_table() {
- let spruce_planks = ItemStack::Present(ItemStackData {
- count: 4,
- kind: Item::SprucePlanks,
- components: Default::default(),
- });
+ let spruce_planks = ItemStack::new(Item::SprucePlanks, 4);
let mut inventory = Inventory {
inventory_menu: Menu::Player(azalea_inventory::Player::default()),