aboutsummaryrefslogtreecommitdiff
path: root/azalea/src
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-05-05 17:01:15 +0000
committermat <github@matdoes.dev>2023-05-05 17:01:15 +0000
commit3702b2cb2117b586c41a79d2f74864a99c144bdf (patch)
treece46d5d4fa809d9eb7f1832c659c5dce94d5c85f /azalea/src
parent8b0b86bbcfdf59ecc8e6785028cfbd43f3e4360c (diff)
downloadazalea-drasl-3702b2cb2117b586c41a79d2f74864a99c144bdf.tar.xz
rename Client::inventory to open_inventory
Diffstat (limited to 'azalea/src')
-rw-r--r--azalea/src/container.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/container.rs b/azalea/src/container.rs
index 24774d43..c8849cdd 100644
--- a/azalea/src/container.rs
+++ b/azalea/src/container.rs
@@ -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)