From cd0a1ed8d4c7670eb58d33f521026e760798e1a5 Mon Sep 17 00:00:00 2001 From: mat Date: Sat, 11 Mar 2023 17:02:57 -0600 Subject: fix doc errors --- azalea/src/pathfinder/mod.rs | 4 ++-- azalea/src/pathfinder/moves.rs | 8 ++++---- azalea/src/swarm/mod.rs | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'azalea/src') diff --git a/azalea/src/pathfinder/mod.rs b/azalea/src/pathfinder/mod.rs index 61a92038..9c06ebb8 100644 --- a/azalea/src/pathfinder/mod.rs +++ b/azalea/src/pathfinder/mod.rs @@ -20,7 +20,7 @@ use azalea_world::entity::metadata::Player; use azalea_world::entity::Local; use azalea_world::{ entity::{Physics, Position, WorldName}, - WorldContainer, + InstanceContainer, }; use bevy_tasks::{AsyncComputeTaskPool, Task}; use futures_lite::future; @@ -93,7 +93,7 @@ fn goto_listener( mut commands: Commands, mut events: EventReader, mut query: Query<(&Position, &WorldName)>, - world_container: Res, + world_container: Res, ) { let thread_pool = AsyncComputeTaskPool::get(); diff --git a/azalea/src/pathfinder/moves.rs b/azalea/src/pathfinder/moves.rs index 3639c091..6625581d 100644 --- a/azalea/src/pathfinder/moves.rs +++ b/azalea/src/pathfinder/moves.rs @@ -151,11 +151,11 @@ mod tests { use super::*; use azalea_block::BlockState; use azalea_core::ChunkPos; - use azalea_world::{Chunk, ChunkStorage, PartialWorld}; + use azalea_world::{Chunk, ChunkStorage, PartialInstance}; #[test] fn test_is_passable() { - let mut partial_world = PartialWorld::default(); + let mut partial_world = PartialInstance::default(); let mut chunk_storage = ChunkStorage::default(); partial_world.chunks.set( @@ -181,7 +181,7 @@ mod tests { #[test] fn test_is_solid() { - let mut partial_world = PartialWorld::default(); + let mut partial_world = PartialInstance::default(); let mut chunk_storage = ChunkStorage::default(); partial_world.chunks.set( &ChunkPos { x: 0, z: 0 }, @@ -206,7 +206,7 @@ mod tests { #[test] fn test_is_standable() { - let mut partial_world = PartialWorld::default(); + let mut partial_world = PartialInstance::default(); let mut chunk_storage = ChunkStorage::default(); partial_world.chunks.set( &ChunkPos { x: 0, z: 0 }, diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 97020153..6fe11b7d 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -11,7 +11,7 @@ use azalea_protocol::{ resolver::{self, ResolverError}, ServerAddress, }; -use azalea_world::WorldContainer; +use azalea_world::InstanceContainer; use bevy_app::{App, Plugin, PluginGroup, PluginGroupBuilder}; use bevy_ecs::{component::Component, entity::Entity, system::Resource, world::World}; use futures::future::join_all; @@ -24,7 +24,7 @@ use tokio::sync::mpsc; /// A swarm is a way to conveniently control many bots at once, while also /// being able to control bots at an individual level when desired. /// -/// Swarms are created from [`azalea::swarm::SwarmBuilder`]. +/// Swarms are created from [`SwarmBuilder`]. /// /// The `S` type parameter is the type of the state for individual bots. /// It's used to make the [`Swarm::add`] function work. @@ -37,7 +37,7 @@ pub struct Swarm { // bot_datas: Arc>>, resolved_address: SocketAddr, address: ServerAddress, - pub world_container: Arc>, + pub world_container: Arc>, bots_tx: mpsc::UnboundedSender<(Option, Client)>, swarm_tx: mpsc::UnboundedSender, @@ -248,7 +248,7 @@ where // resolve the address let resolved_address = resolver::resolve_address(&address).await?; - let world_container = Arc::new(RwLock::new(WorldContainer::default())); + let world_container = Arc::new(RwLock::new(InstanceContainer::default())); // we can't modify the swarm plugins after this let (bots_tx, mut bots_rx) = mpsc::unbounded_channel(); -- cgit v1.2.3