mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
rename Client::inventory to open_inventory
This commit is contained in:
parent
8b0b86bbcf
commit
3702b2cb21
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ impl Plugin for ContainerPlugin {
|
|||
|
||||
pub trait ContainerClientExt {
|
||||
async fn open_container(&mut self, pos: BlockPos) -> Option<ContainerHandle>;
|
||||
fn inventory(&mut self) -> Option<ContainerHandle>;
|
||||
fn open_inventory(&mut self) -> Option<ContainerHandle>;
|
||||
}
|
||||
|
||||
impl ContainerClientExt for Client {
|
||||
|
@ -81,7 +81,7 @@ impl ContainerClientExt for Client {
|
|||
/// Note that this will send a packet to the server once it's dropped. Also,
|
||||
/// due to how it's implemented, you could call this function multiple times
|
||||
/// while another inventory handle already exists (but you shouldn't).
|
||||
fn inventory(&mut self) -> Option<ContainerHandle> {
|
||||
fn open_inventory(&mut self) -> Option<ContainerHandle> {
|
||||
let ecs = self.ecs.lock();
|
||||
let inventory = ecs
|
||||
.get::<InventoryComponent>(self.entity)
|
||||
|
|
Loading…
Add table
Reference in a new issue