diff options
Diffstat (limited to 'azalea/examples/testbot/commands.rs')
| -rw-r--r-- | azalea/examples/testbot/commands.rs | 2 |
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() } } |
