aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-09-15 17:00:52 -0500
committermat <git@matdoes.dev>2023-09-15 17:00:52 -0500
commit659b6a1175298f4e2204c151e1fab0e18548f2ce (patch)
tree377bd6106584abad98ec011e7d1607a873e473ff /azalea-client/src
parent622042fd41b89d2d9721314a9d136672bf00eac7 (diff)
downloadazalea-drasl-659b6a1175298f4e2204c151e1fab0e18548f2ce.tar.xz
rename start_ecs to start_ecs_runner
Diffstat (limited to 'azalea-client/src')
-rw-r--r--azalea-client/src/client.rs6
-rw-r--r--azalea-client/src/lib.rs4
2 files changed, 5 insertions, 5 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 89e33dbc..f26fe6d8 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -230,7 +230,7 @@ impl Client {
let mut app = App::new();
app.add_plugins(DefaultPlugins);
- let ecs_lock = start_ecs(app, run_schedule_receiver, run_schedule_sender.clone());
+ let ecs_lock = start_ecs_runner(app, run_schedule_receiver, run_schedule_sender.clone());
Self::start_client(
ecs_lock,
@@ -243,7 +243,7 @@ impl Client {
}
/// Create a [`Client`] when you already have the ECS made with
- /// [`start_ecs`]. You'd usually want to use [`Self::join`] instead.
+ /// [`start_ecs_runner`]. You'd usually want to use [`Self::join`] instead.
pub async fn start_client(
ecs_lock: Arc<Mutex<World>>,
account: &Account,
@@ -634,7 +634,7 @@ impl Plugin for AzaleaPlugin {
/// You can create your app with `App::new()`, but don't forget to add
/// [`DefaultPlugins`].
#[doc(hidden)]
-pub fn start_ecs(
+pub fn start_ecs_runner(
app: App,
run_schedule_receiver: mpsc::UnboundedReceiver<()>,
run_schedule_sender: mpsc::UnboundedSender<()>,
diff --git a/azalea-client/src/lib.rs b/azalea-client/src/lib.rs
index 942f683c..40544540 100644
--- a/azalea-client/src/lib.rs
+++ b/azalea-client/src/lib.rs
@@ -32,8 +32,8 @@ pub mod task_pool;
pub use account::{Account, AccountOpts};
pub use client::{
- start_ecs, Client, ClientInformation, DefaultPlugins, JoinError, JoinedClientBundle, TabList,
- TickBroadcast,
+ start_ecs_runner, Client, ClientInformation, DefaultPlugins, JoinError, JoinedClientBundle,
+ TabList, TickBroadcast,
};
pub use events::Event;
pub use local_player::{GameProfileComponent, LocalPlayer, SendPacketEvent};