From fe423416b494e91f72dc91308b157d734f8c50f2 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 25 Jan 2025 22:34:00 +0000 Subject: Rename Connection::configuration to config and add some clientbound functions that already existed serverbound taken from Shay's fork: https://github.com/Shays-Forks/azalea/commit/b0ca6076ed411b31e32a4abaa0350eb297067476 --- azalea-protocol/src/connect.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'azalea-protocol/src') diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index ef202378..e1ee639b 100755 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -359,7 +359,7 @@ impl Connection { /// Change our state from login to configuration. This is the state where /// the server sends us the registries and resource pack and stuff. #[must_use] - pub fn configuration(self) -> Connection { + pub fn config(self) -> Connection { Connection::from(self) } @@ -493,7 +493,7 @@ impl Connection { /// Change our state back to configuration. #[must_use] - pub fn configuration(self) -> Connection { + pub fn config(self) -> Connection { Connection::from(self) } } @@ -519,7 +519,14 @@ impl Connection { impl Connection { /// Change our state back to configuration. #[must_use] - pub fn configuration(self) -> Connection { + pub fn config(self) -> Connection { + Connection::from(self) + } +} +impl Connection { + /// Change our state back to configuration. + #[must_use] + pub fn config(self) -> Connection { Connection::from(self) } } -- cgit v1.2.3