aboutsummaryrefslogtreecommitdiff
path: root/azalea
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2024-12-19 02:31:08 +0000
committermat <git@matdoes.dev>2024-12-19 02:52:41 +0000
commite268c4929177e540baa9d2bb29bc171f49cc7a25 (patch)
tree10146e529088ab823452a5971c0a37a8886b2a68 /azalea
parent1f06a1540f46d8087907566d7c6c1ab397c517ec (diff)
downloadazalea-drasl-e268c4929177e540baa9d2bb29bc171f49cc7a25.tar.xz
fix incorrect packets
Diffstat (limited to 'azalea')
-rw-r--r--azalea/src/container.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/azalea/src/container.rs b/azalea/src/container.rs
index df020dbe..38877616 100644
--- a/azalea/src/container.rs
+++ b/azalea/src/container.rs
@@ -117,7 +117,7 @@ impl ContainerClientExt for Client {
/// A handle to a container that may be open. This does not close the container
/// when it's dropped. See [`ContainerHandle`] if that behavior is desired.
pub struct ContainerHandleRef {
- id: u8,
+ id: i32,
client: Client,
}
impl Debug for ContainerHandleRef {
@@ -138,7 +138,7 @@ impl ContainerHandleRef {
/// Get the id of the container. If this is 0, that means it's the player's
/// inventory. Otherwise, the number isn't really meaningful since only one
/// container can be open at a time.
- pub fn id(&self) -> u8 {
+ pub fn id(&self) -> i32 {
self.id
}
@@ -199,14 +199,14 @@ impl Debug for ContainerHandle {
}
}
impl ContainerHandle {
- fn new(id: u8, client: Client) -> Self {
+ fn new(id: i32, client: Client) -> Self {
Self(ContainerHandleRef { id, client })
}
/// Get the id of the container. If this is 0, that means it's the player's
/// inventory. Otherwise, the number isn't really meaningful since only one
/// container can be open at a time.
- pub fn id(&self) -> u8 {
+ pub fn id(&self) -> i32 {
self.0.id()
}