aboutsummaryrefslogtreecommitdiff
path: root/azalea/examples/testbot/commands.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2026-05-06 03:36:16 -0100
committermat <git@matdoes.dev>2026-05-07 08:05:58 -1200
commit9ffd0e80bbb3feace231553d6539124585b03e3c (patch)
treead8df7d07df9f8f542e288c263d76b8ffd637416 /azalea/examples/testbot/commands.rs
parent4d1f430408dc6854c1af5fb14b2641e293a9cf43 (diff)
downloadazalea-drasl-9ffd0e80bbb3feace231553d6539124585b03e3c.tar.xz
change panicking functions in Client and EntityRef to return an AzaleaResult instead
Diffstat (limited to 'azalea/examples/testbot/commands.rs')
-rw-r--r--azalea/examples/testbot/commands.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea/examples/testbot/commands.rs b/azalea/examples/testbot/commands.rs
index e8a9855f..03705617 100644
--- a/azalea/examples/testbot/commands.rs
+++ b/azalea/examples/testbot/commands.rs
@@ -37,6 +37,8 @@ impl CommandSource {
.any_entity_by::<&GameProfileComponent, With<Player>>(
|profile: &GameProfileComponent| profile.name == username,
)
+ .ok()
+ .flatten()
}
}