From 3428f03a0f98ef50a3f92f084575fbb2b8a58dbb Mon Sep 17 00:00:00 2001 From: Edvin Bryntesson Date: Sat, 24 Aug 2024 18:12:51 +0200 Subject: [PATCH] better name --- pumpkin-inventory/src/window_property.rs | 2 +- pumpkin/src/client/container.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pumpkin-inventory/src/window_property.rs b/pumpkin-inventory/src/window_property.rs index 56f4b2942..136d68312 100644 --- a/pumpkin-inventory/src/window_property.rs +++ b/pumpkin-inventory/src/window_property.rs @@ -24,7 +24,7 @@ impl WindowProperty { } } - pub fn into_packet(self) -> (i16, i16) { + pub fn into_tuple(self) -> (i16, i16) { (self.window_property.to_id(), self.value) } } diff --git a/pumpkin/src/client/container.rs b/pumpkin/src/client/container.rs index 80616d423..fc9cf1059 100644 --- a/pumpkin/src/client/container.rs +++ b/pumpkin/src/client/container.rs @@ -97,7 +97,7 @@ impl Player { window_type: WindowType, window_property: WindowProperty, ) { - let (id, value) = window_property.into_packet(); + let (id, value) = window_property.into_tuple(); self.client .send_packet(&CSetContainerProperty::new(window_type as u8, id, value)); }