mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 23:44:38 +00:00
Fix deadlock when changing server
This commit is contained in:
parent
8d110a9f7c
commit
e1605282f6
1 changed files with 2 additions and 3 deletions
|
@ -286,11 +286,10 @@ pub fn process_packet_events(ecs: &mut World) {
|
|||
Some(player_entity),
|
||||
);
|
||||
{
|
||||
let map = instance_holder.instance.read().registries.map.clone();
|
||||
let new_registries = &mut weak_instance.write().registries;
|
||||
// add the registries from this instance to the weak instance
|
||||
for (registry_name, registry) in
|
||||
&instance_holder.instance.read().registries.map
|
||||
{
|
||||
for (registry_name, registry) in &map {
|
||||
new_registries
|
||||
.map
|
||||
.insert(registry_name.clone(), registry.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue