diff options
| author | mat <git@matdoes.dev> | 2025-02-24 03:55:29 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-24 03:55:29 +0000 |
| commit | b9767424f3393a0aed65b713e19a265189a872b0 (patch) | |
| tree | 30406dc4af41a003644d3436dc839f939a734fb0 /azalea-protocol/src/connect.rs | |
| parent | 6a5ab34a2db56c22e1051dfaabf98322c50f53bd (diff) | |
| download | azalea-drasl-b9767424f3393a0aed65b713e19a265189a872b0.tar.xz | |
don't remove LocalEntity from disconnected players, add new debug logs, and make GameProfile clones cheaper
Diffstat (limited to 'azalea-protocol/src/connect.rs')
| -rwxr-xr-x | azalea-protocol/src/connect.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index 99a8a6b4..a4c558a1 100755 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -243,6 +243,15 @@ where pub fn into_split(self) -> (ReadConnection<R>, WriteConnection<W>) { (self.reader, self.writer) } + + /// Split the reader and writer into the state-agnostic + /// [`RawReadConnection`] and [`RawWriteConnection`] types. + /// + /// This is meant to help with some types of proxies. + #[must_use] + pub fn into_split_raw(self) -> (RawReadConnection, RawWriteConnection) { + (self.reader.raw, self.writer.raw) + } } #[derive(Error, Debug)] |
