mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
Fix issues from merge
This commit is contained in:
parent
336d155049
commit
04a785a579
5 changed files with 1305 additions and 1319 deletions
2590
Cargo.lock
generated
2590
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -332,7 +332,7 @@ impl Client {
|
|||
}
|
||||
};
|
||||
|
||||
Ok((conn, game_profile))
|
||||
Ok((conn, profile))
|
||||
}
|
||||
|
||||
/// Write a packet directly to the server.
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
use std::sync::Arc;
|
||||
|
||||
use azalea_auth::game_profile::GameProfile;
|
||||
use azalea_chat::Component;
|
||||
use azalea_core::GameType;
|
||||
|
@ -21,19 +23,3 @@ pub struct PlayerInfo {
|
|||
/// The player's display name in the tab list.
|
||||
pub display_name: Option<Component>,
|
||||
}
|
||||
|
||||
impl PlayerInfo {
|
||||
/// Get a reference to the entity of the player in the world.
|
||||
pub fn entity<'d>(&'d self, world: &'d World) -> Option<&EntityData> {
|
||||
world.entity_by_uuid(&self.uuid)
|
||||
}
|
||||
|
||||
/// Get a mutable reference to the entity of the player in the world.
|
||||
pub fn entity_mut<'d>(&'d mut self, world: &'d mut World) -> Option<&'d mut EntityData> {
|
||||
world.entity_mut_by_uuid(&self.uuid)
|
||||
}
|
||||
|
||||
pub fn set_uuid(&mut self, uuid: Uuid) {
|
||||
self.uuid = uuid;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,7 @@ impl World {
|
|||
|
||||
pub fn get_chunk(&self, pos: &ChunkPos) -> Option<Arc<Mutex<Chunk>>> {
|
||||
self.chunk_storage.get(pos)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn set_chunk(&mut self, pos: &ChunkPos, chunk: Option<Chunk>) -> Result<(), BufReadError> {
|
||||
self.chunk_storage
|
||||
|
|
|
@ -11,12 +11,12 @@ version = "0.4.0"
|
|||
[dependencies]
|
||||
anyhow = "^1.0.65"
|
||||
async-trait = "0.1.58"
|
||||
azalea-block = {version = "0.3.0", path = "../azalea-block"}
|
||||
azalea-client = {version = "0.3.0", path = "../azalea-client"}
|
||||
azalea-core = {version = "0.3.0", path = "../azalea-core"}
|
||||
azalea-physics = {version = "0.3.0", path = "../azalea-physics"}
|
||||
azalea-protocol = {version = "0.3.0", path = "../azalea-protocol"}
|
||||
azalea-world = {version = "0.3.0", path = "../azalea-world"}
|
||||
azalea-block = {version = "0.4.0", path = "../azalea-block"}
|
||||
azalea-client = {version = "0.4.0", path = "../azalea-client"}
|
||||
azalea-core = {version = "0.4.0", path = "../azalea-core"}
|
||||
azalea-physics = {version = "0.4.0", path = "../azalea-physics"}
|
||||
azalea-protocol = {version = "0.4.0", path = "../azalea-protocol"}
|
||||
azalea-world = {version = "0.4.0", path = "../azalea-world"}
|
||||
futures = "0.3.25"
|
||||
log = "0.4.17"
|
||||
nohash-hasher = "0.2.0"
|
||||
|
|
Loading…
Add table
Reference in a new issue