diff options
| author | mat <git@matdoes.dev> | 2023-07-26 00:45:06 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-07-26 00:45:06 -0500 |
| commit | 39943447f68fede8e8ed6799cc8eee7bddecf945 (patch) | |
| tree | c5531085154982901b6c06b1fb63412efe914502 /azalea-inventory | |
| parent | 22ea8c60fed17e48a591bcbb82808fed55509386 (diff) | |
| download | azalea-drasl-39943447f68fede8e8ed6799cc8eee7bddecf945.tar.xz | |
fix querying multiple components in entity_by
Diffstat (limited to 'azalea-inventory')
| -rw-r--r-- | azalea-inventory/azalea-inventory-macros/src/menu_impl.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs b/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs index a4f78370..ef8f8641 100644 --- a/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs +++ b/azalea-inventory/azalea-inventory-macros/src/menu_impl.rs @@ -147,7 +147,11 @@ pub fn generate(input: &DeclareMenus) -> TokenStream { /// /// The indexes in this will match up with [`Menu::slot_mut`]. /// - /// If you don't want to include the player's inventory, use [`Menu::contents`] instead. + /// If you don't want to include the player's inventory, use [`Menu::contents`] + /// instead. + /// + /// If you *only* want to include the players inventory, then you can filter by only + /// using the slots in [`Self::player_slots_range`]. pub fn slots(&self) -> Vec<ItemSlot> { match self { #slots_match_variants |
