diff options
| author | mat <git@matdoes.dev> | 2025-06-14 20:33:22 -1030 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-14 20:33:22 -1030 |
| commit | 5e81d85d7e8eeca1b6c86ea028353d7c55361961 (patch) | |
| tree | 1cf36f406444811ca39b38af0d874d0ae2351368 /azalea-client/src | |
| parent | a2606569bb79867d07a075bcf7b05730e4264d72 (diff) | |
| download | azalea-drasl-5e81d85d7e8eeca1b6c86ea028353d7c55361961.tar.xz | |
add note about current_thread to azalea readme
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/client.rs | 2 | ||||
| -rw-r--r-- | azalea-client/src/plugins/interact.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs index d9fec523..c9cc5259 100644 --- a/azalea-client/src/client.rs +++ b/azalea-client/src/client.rs @@ -153,7 +153,7 @@ impl Client { /// ```rust,no_run /// use azalea_client::{Account, Client}; /// - /// #[tokio::main] + /// #[tokio::main(flavor = "current_thread")] /// async fn main() -> Result<(), Box<dyn std::error::Error>> { /// let account = Account::offline("bot"); /// let (client, rx) = Client::join(account, "localhost").await?; diff --git a/azalea-client/src/plugins/interact.rs b/azalea-client/src/plugins/interact.rs index d91597d6..da1fa78e 100644 --- a/azalea-client/src/plugins/interact.rs +++ b/azalea-client/src/plugins/interact.rs @@ -144,7 +144,7 @@ impl BlockStatePredictionHandler { .or_insert(ServerVerifiedState { seq: self.seq, block_state: old_state, - player_pos: player_pos, + player_pos, }); } |
