diff --git a/server/src/cmd.rs b/server/src/cmd.rs index f5b1093a93..d9dc3575e2 100644 --- a/server/src/cmd.rs +++ b/server/src/cmd.rs @@ -3493,8 +3493,8 @@ fn handle_reload_chunks( server .state .ecs() - .write_resource::() - .unload_all(); + .try_fetch_mut::() + .map(|mut terrain_persistence| terrain_persistence.unload_all()); server.state.clear_terrain(); Ok(())