diff options
| author | mat <git@matdoes.dev> | 2025-10-04 11:17:38 -0430 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-10-04 11:17:38 -0430 |
| commit | a7e2f92b169d6079ba09b2190fefd2d539024a68 (patch) | |
| tree | 5939fbe3b22f6cb4a0b4f90bda72cb25898bade1 /azalea-client | |
| parent | a8193d43b2d47d9ac0872dcead792140f2be58bc (diff) | |
| download | azalea-drasl-a7e2f92b169d6079ba09b2190fefd2d539024a68.tar.xz | |
fix handle_container_click_event not being added
Diffstat (limited to 'azalea-client')
| -rw-r--r-- | azalea-client/src/plugins/inventory.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/azalea-client/src/plugins/inventory.rs b/azalea-client/src/plugins/inventory.rs index 6902430e..72df7c89 100644 --- a/azalea-client/src/plugins/inventory.rs +++ b/azalea-client/src/plugins/inventory.rs @@ -42,7 +42,8 @@ impl Plugin for InventoryPlugin { .add_observer(handle_client_side_close_container_trigger) .add_observer(handle_menu_opened_trigger) .add_observer(handle_container_close_event) - .add_observer(handle_set_container_content_trigger); + .add_observer(handle_set_container_content_trigger) + .add_observer(handle_container_click_event); } } @@ -827,8 +828,8 @@ pub struct ContainerClickEvent { pub operation: ClickOperation, } pub fn handle_container_click_event( - mut commands: Commands, container_click: On<ContainerClickEvent>, + mut commands: Commands, mut query: Query<( Entity, &mut Inventory, |
