We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d110a9 commit 858bec2Copy full SHA for 858bec2
azalea-client/src/packet_handling/game.rs
@@ -286,14 +286,11 @@ pub fn process_packet_events(ecs: &mut World) {
286
Some(player_entity),
287
);
288
{
289
+ let map = instance_holder.instance.read().registries.map.clone();
290
let new_registries = &mut weak_instance.write().registries;
291
// add the registries from this instance to the weak instance
- for (registry_name, registry) in
292
- &instance_holder.instance.read().registries.map
293
- {
294
- new_registries
295
- .map
296
- .insert(registry_name.clone(), registry.clone());
+ for (registry_name, registry) in map {
+ new_registries.map.insert(registry_name, registry);
297
}
298
299
instance_holder.instance = weak_instance;
0 commit comments