Fix loading when already connected due to new short-circuit

This commit is contained in:
NG (Graham) committed 2026-07-09 20:59:03 -04:00
1 parent 192f3216b2
commit 9aaf1b5b5f
1 file changed
+1
+1
View File
@@ -622,6 +622,7 @@ impl <L: super::CustomGameLogic> GenericGamemodeEngine<L> {
literustlib::packet::Property::ReliableOrdered, literustlib::packet::Property::ReliableOrdered,
&new_user.connection.connection &new_user.connection.connection
).await); ).await);
users.insert(id, new_user);
} else { } else {
let aliases = self.fakes_handler.get_client_ais().await.into_iter().find(|(key, _val)| *key == id).map(|(_key, val)| val).unwrap_or_default(); let aliases = self.fakes_handler.get_client_ais().await.into_iter().find(|(key, _val)| *key == id).map(|(_key, val)| val).unwrap_or_default();
log::info!("AIs running on new player {} in game {}: {:?}", id, game_guid, aliases); log::info!("AIs running on new player {} in game {}: {:?}", id, game_guid, aliases);