mirror of
https://github.com/italicsjenga/valence.git
synced 2025-01-09 22:31:30 +11:00
tiny one line change to fix writing packets not working (#290)
## Description With component division, the WritePacket trait was pub(crate), which disallowed writing packets outside of valence. This 1 line PR fixes that. ## Test Plan It might be a good idea to include examples/tests that use packet writing to catch this, but it's most likely not strictly necessary.
This commit is contained in:
parent
68cf6e83a0
commit
255b78e02c
|
@ -5,7 +5,7 @@ use valence_protocol::codec::{encode_packet, encode_packet_compressed, PacketEnc
|
|||
use valence_protocol::Packet;
|
||||
|
||||
/// Types that can have packets written to them.
|
||||
pub(crate) trait WritePacket {
|
||||
pub trait WritePacket {
|
||||
/// Writes a packet to this object. Encoding errors are typically logged and
|
||||
/// discarded.
|
||||
fn write_packet<'a>(&mut self, packet: &impl Packet<'a>);
|
||||
|
|
Loading…
Reference in a new issue