better name
This commit is contained in:
parent
bae9198980
commit
3428f03a0f
@ -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)
|
(self.window_property.to_id(), self.value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,7 +97,7 @@ impl Player {
|
|||||||
window_type: WindowType,
|
window_type: WindowType,
|
||||||
window_property: WindowProperty<T>,
|
window_property: WindowProperty<T>,
|
||||||
) {
|
) {
|
||||||
let (id, value) = window_property.into_packet();
|
let (id, value) = window_property.into_tuple();
|
||||||
self.client
|
self.client
|
||||||
.send_packet(&CSetContainerProperty::new(window_type as u8, id, value));
|
.send_packet(&CSetContainerProperty::new(window_type as u8, id, value));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user