1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00
This commit is contained in:
mat 2025-04-19 23:35:13 +07:00
parent 6c1b144970
commit b7bc08e352

View file

@ -486,7 +486,7 @@ where
let ecs_mutex = first_bot.ecs.clone();
let mut ecs = ecs_mutex.lock();
let mut query = ecs.query::<Option<&S>>();
let Ok(Some(first_bot_state)) = query.get(&mut ecs, first_bot.entity) else {
let Ok(Some(first_bot_state)) = query.get(&ecs, first_bot.entity) else {
error!(
"the first bot ({} / {}) is missing the required state component! none of the client handler functions will be called.",
first_bot.username(),
@ -506,7 +506,7 @@ where
let state = match states.entry(bot.entity) {
hash_map::Entry::Occupied(e) => e.into_mut(),
hash_map::Entry::Vacant(e) => {
let Ok(Some(state)) = query.get(&mut ecs, bot.entity) else {
let Ok(Some(state)) = query.get(&ecs, bot.entity) else {
error!(
"one of our bots ({} / {}) is missing the required state component! its client handler function will not be called.",
bot.username(),