From e7b77971441b2069e7c8834d88cb2252b783e242 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 7 Mar 2023 23:06:59 +0100 Subject: [PATCH] . --- kubi-server/src/auth.rs | 1 - kubi-server/src/client.rs | 1 - kubi/src/world/tasks.rs | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/kubi-server/src/auth.rs b/kubi-server/src/auth.rs index 7ecaba0..3f10a61 100644 --- a/kubi-server/src/auth.rs +++ b/kubi-server/src/auth.rs @@ -1,6 +1,5 @@ use shipyard::{UniqueView, UniqueViewMut}; use kubi_shared::networking::messages::{ClientToServerMessage, ServerToClientMessage, InitData}; -use kubi_udp::server::ServerEvent; use crate::{server::{ServerEvents, UdpServer}, config::ConfigTable, util::log_error}; pub fn authenticate_players( diff --git a/kubi-server/src/client.rs b/kubi-server/src/client.rs index 23587b7..41423ba 100644 --- a/kubi-server/src/client.rs +++ b/kubi-server/src/client.rs @@ -1,7 +1,6 @@ use shipyard::{Component, EntityId}; use hashbrown::HashMap; use nohash_hasher::BuildNoHashHasher; -use kubi_udp::{ClientId, ClientIdRepr}; #[derive(Component)] pub struct Client(ClientId); diff --git a/kubi/src/world/tasks.rs b/kubi/src/world/tasks.rs index 0bc05ad..e13de47 100644 --- a/kubi/src/world/tasks.rs +++ b/kubi/src/world/tasks.rs @@ -83,8 +83,8 @@ pub fn inject_network_responses_into_manager_queue( events: View ) { for event in events.iter() { - if let ClientEvent::MessageReceived(ServerToClientMessage::ChunkResponse { chunk, data, queued }) = &event.0 { - let position = IVec3::from_array(*chunk); + if let ClientEvent::MessageReceived(ServerToClientMessage::ChunkResponse { &chunk, data, queued }) = &event.0 { + let position = IVec3::from_array(chunk); manager.add_sussy_response(ChunkTaskResponse::LoadedChunk { position, chunk_data: data.clone(),