diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-09 13:29:59 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-09 13:29:59 -0600 |
| commit | 26d619c9a329087a23d6577ee74bd764f50cd773 (patch) | |
| tree | 8020fe902257764a23a445c6ed9987ea4848189d /azalea/src/container.rs | |
| parent | 84cd261118c9d1e3145d4d1751c0d22098cd8cd8 (diff) | |
| download | azalea-drasl-26d619c9a329087a23d6577ee74bd764f50cd773.tar.xz | |
Enchantments (#286)
* start implementing enchants
* store parsed registries
* more work on enchants
* implement deserializer for some entity effects
* mostly working definitions for enchants
* fix tests
* detect equipment changes
* fix errors
* update changelog
* fix some imports
* remove outdated todo
* add basic test for enchants applying attributes
* use git simdnbt
Diffstat (limited to 'azalea/src/container.rs')
| -rw-r--r-- | azalea/src/container.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea/src/container.rs b/azalea/src/container.rs index 74c8b1e5..e82eeac8 100644 --- a/azalea/src/container.rs +++ b/azalea/src/container.rs @@ -2,10 +2,11 @@ use std::{fmt, fmt::Debug}; use azalea_client::{ Client, - inventory::{CloseContainerEvent, ContainerClickEvent, Inventory}, + inventory::{CloseContainerEvent, ContainerClickEvent}, packet::game::ReceiveGamePacketEvent, }; use azalea_core::position::BlockPos; +use azalea_entity::inventory::Inventory; use azalea_inventory::{ ItemStack, Menu, operations::{ClickOperation, PickupClick, QuickMoveClick}, @@ -185,7 +186,7 @@ impl ContainerClientExt for Client { } fn get_held_item(&self) -> ItemStack { - self.query_self::<&Inventory, _>(|inv| inv.held_item()) + self.query_self::<&Inventory, _>(|inv| inv.held_item().clone()) } } |
