diff options
| author | mat <git@matdoes.dev> | 2023-09-15 17:00:52 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-09-15 17:00:52 -0500 |
| commit | 659b6a1175298f4e2204c151e1fab0e18548f2ce (patch) | |
| tree | 377bd6106584abad98ec011e7d1607a873e473ff /azalea/src | |
| parent | 622042fd41b89d2d9721314a9d136672bf00eac7 (diff) | |
| download | azalea-drasl-659b6a1175298f4e2204c151e1fab0e18548f2ce.tar.xz | |
rename start_ecs to start_ecs_runner
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/lib.rs | 3 | ||||
| -rw-r--r-- | azalea/src/swarm/mod.rs | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/azalea/src/lib.rs b/azalea/src/lib.rs index 77e4ecf1..9e2cfb13 100644 --- a/azalea/src/lib.rs +++ b/azalea/src/lib.rs @@ -188,7 +188,8 @@ where // An event that causes the schedule to run. This is only used internally. let (run_schedule_sender, run_schedule_receiver) = mpsc::unbounded_channel(); - let ecs_lock = start_ecs(self.app, run_schedule_receiver, run_schedule_sender.clone()); + let ecs_lock = + start_ecs_runner(self.app, run_schedule_receiver, run_schedule_sender.clone()); let (bot, mut rx) = Client::start_client( ecs_lock, diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 05f39388..f2d7e5b6 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -5,7 +5,7 @@ mod events; pub mod prelude; use azalea_client::{ - chat::ChatPacket, start_ecs, Account, Client, DefaultPlugins, Event, JoinError, + chat::ChatPacket, start_ecs_runner, Account, Client, DefaultPlugins, Event, JoinError, }; use azalea_protocol::{ connect::ConnectionError, @@ -319,7 +319,8 @@ where let (swarm_tx, mut swarm_rx) = mpsc::unbounded_channel(); let (run_schedule_sender, run_schedule_receiver) = mpsc::unbounded_channel(); - let ecs_lock = start_ecs(self.app, run_schedule_receiver, run_schedule_sender.clone()); + let ecs_lock = + start_ecs_runner(self.app, run_schedule_receiver, run_schedule_sender.clone()); let swarm = Swarm { ecs_lock: ecs_lock.clone(), @@ -515,7 +516,8 @@ impl Swarm { // rx is used to receive events from the bot // An event that causes the schedule to run. This is only used internally. // let (run_schedule_sender, run_schedule_receiver) = mpsc::unbounded_channel(); - // let ecs_lock = start_ecs(run_schedule_receiver, run_schedule_sender.clone()); + // let ecs_lock = start_ecs_runner(run_schedule_receiver, + // run_schedule_sender.clone()); let (bot, mut rx) = Client::start_client( self.ecs_lock.clone(), account, |
