mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-31 08:22:33 +00:00
better name
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user