aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--azalea/src/_docs/performance.md8
-rw-r--r--azalea/src/client_impl/mod.rs2
-rw-r--r--docs-rs/arborium-header.html2
3 files changed, 9 insertions, 3 deletions
diff --git a/azalea/src/_docs/performance.md b/azalea/src/_docs/performance.md
index 30483f08..40b25040 100644
--- a/azalea/src/_docs/performance.md
+++ b/azalea/src/_docs/performance.md
@@ -90,11 +90,17 @@ If you want to disable `packet-event` but still have a way to watch for packets,
If the client doesn't need a high view distance, then you can reduce the number of stored chunks/entities and received packets by lowering it.
This can be done by having something like the following in your handler function:
-```rust
+```rust,no_run
+# use azalea::ClientInformation;
+# async fn handle(bot: azalea::Client, event: azalea::Event, state: azalea::NoState) {
+# match event {
azalea::Event::Init => bot.set_client_information(ClientInformation {
view_distance: 2,
..Default::default()
}),
+# _ => {}
+# }
+# }
```
## Disabling plugins
diff --git a/azalea/src/client_impl/mod.rs b/azalea/src/client_impl/mod.rs
index ba188307..45b11fbf 100644
--- a/azalea/src/client_impl/mod.rs
+++ b/azalea/src/client_impl/mod.rs
@@ -284,7 +284,7 @@ impl Client {
/// .await;
/// println!("done!");
/// }
- /// async fn handle(bot: Client, event: Event, _state: NoState) -> eyreResult<()> {
+ /// async fn handle(bot: Client, event: Event, _state: NoState) -> eyre::Result<()> {
/// match event {
/// Event::Disconnect(_) | Event::ConnectionFailed(_) => {
/// bot.exit();
diff --git a/docs-rs/arborium-header.html b/docs-rs/arborium-header.html
index f0772b20..ff18a028 100644
--- a/docs-rs/arborium-header.html
+++ b/docs-rs/arborium-header.html
@@ -1 +1 @@
-<script src="https://cdn.jsdelivr.net/npm/@arborium/arborium/dist/arborium.iife.js"></script> \ No newline at end of file
+<script defer src="https://cdn.jsdelivr.net/npm/@arborium/arborium/dist/arborium.iife.js"></script> \ No newline at end of file