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)); }