better name

This commit is contained in:
Edvin Bryntesson
2024-08-24 18:12:51 +02:00
parent bae9198980
commit 3428f03a0f
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ impl<T: WindowPropertyTrait> WindowProperty<T> {
}
}
pub fn into_packet(self) -> (i16, i16) {
pub fn into_tuple(self) -> (i16, i16) {
(self.window_property.to_id(), self.value)
}
}

View File

@@ -97,7 +97,7 @@ impl Player {
window_type: WindowType,
window_property: WindowProperty<T>,
) {
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));
}