1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

maybe fix deadlock idk

can't test it rn lmao
This commit is contained in:
Ubuntu 2023-01-11 19:13:23 +00:00
parent 6da1bced1e
commit 1b83277a0c

View file

@ -194,15 +194,15 @@ impl Client {
// we got the GameConnection, so the server is now connected :)
let client = Client::new(game_profile.clone(), entity, ecs_lock.clone());
let world = client.world();
let (packet_writer_sender, packet_writer_receiver) = mpsc::unbounded_channel();
let mut local_player = crate::local_player::LocalPlayer::new(
entity,
game_profile,
packet_writer_sender,
world,
// default to an empty world, it'll be set correctly later when we
// get the login packet
Arc::new(RwLock::new(World::default())),
ecs.resource_mut::<EntityInfos>().deref_mut(),
tx,
);