diff options
| author | EightFactorial <murphkev000@gmail.com> | 2023-01-21 20:14:23 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-21 22:14:23 -0600 |
| commit | 9ee5e71bb13e596248fde000d8717c86276b0ce1 (patch) | |
| tree | bd6363af53bca9bbd3dede1c7ee59615b94eb107 /azalea-client/src/chat.rs | |
| parent | 1059afa6fcf8b2776fd25dac07ed2e76ab48bed3 (diff) | |
| download | azalea-drasl-9ee5e71bb13e596248fde000d8717c86276b0ce1.tar.xz | |
Server functions and proxy example (#59)
* A couple useful things for servers
* Add proxy example
* Use Uuid's serde feature
* Add const options to proxy example
* Example crates go in dev-dependencies
* Warn instead of error
* Log address on login
* Requested changes
* add a test for deserializing game profile + random small changes
Co-authored-by: mat <github@matdoes.dev>
Diffstat (limited to 'azalea-client/src/chat.rs')
| -rwxr-xr-x | azalea-client/src/chat.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/chat.rs b/azalea-client/src/chat.rs index 44ad8a71..de71f586 100755 --- a/azalea-client/src/chat.rs +++ b/azalea-client/src/chat.rs @@ -77,8 +77,8 @@ impl ChatPacket { /// player-sent chat message, this will be None. pub fn uuid(&self) -> Option<Uuid> { match self { - ChatPacket::System(_) => return None, - ChatPacket::Player(m) => return Some(m.sender), + ChatPacket::System(_) => None, + ChatPacket::Player(m) => Some(m.sender), } } |
