aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/_docs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-03-20 14:33:53 +0800
committermat <git@matdoes.dev>2026-03-20 14:33:53 +0800
commit2446ced45b7a3365000c21360498ec341bc6e072 (patch)
treeb0ed0d3111d3b4d67dd4e69bf1de5610287501d9 /azalea/src/_docs
parent25cd1c0b60604655b70d70f8ec33a54853905eea (diff)
downloadazalea-drasl-2446ced45b7a3365000c21360498ec341bc6e072.tar.xz
doc fixes
Diffstat (limited to 'azalea/src/_docs')
-rw-r--r--azalea/src/_docs/performance.md8
1 files changed, 7 insertions, 1 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