diff --git a/client/src/lib.rs b/client/src/lib.rs index a4e408526a..6cd11b307b 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -39,7 +39,7 @@ use common::{ mounting::Rider, outcome::Outcome, recipe::{ComponentRecipeBook, RecipeBook}, - resources::{DeltaTime, GameMode, PlayerEntity, ServerTime, Time, TimeOfDay}, + resources::{DeltaTime, GameMode, MonotonicTime, PlayerEntity, Time, TimeOfDay}, spiral::Spiral2d, terrain::{ block::Block, map::MapConfig, neighbors, site::DungeonKindMeta, BiomeKind, @@ -1684,9 +1684,9 @@ impl Client { // significant changes to this code. Here is the approximate order of // things. Please update it as this code changes. // - // 1) Collect input from the frontend, apply input effects to the state + // 1) Handle messages from the server + // 2) Collect input from the frontend, apply input effects to the state // of the game - // 2) Handle messages from the server // 3) Go through any events (timer-driven or otherwise) that need handling // and apply them to the state of the game // 4) Perform a single LocalState tick (i.e: update the world and entities @@ -1697,33 +1697,7 @@ impl Client { // 7) Finish the tick, passing actions of the main thread back // to the frontend - // 1) Handle input from frontend. - // Pass character actions from frontend input to the player's entity. - if self.presence.is_some() { - prof_span!("handle and send inputs"); - self.next_control.inputs = inputs; - let con = std::mem::take(&mut self.next_control); - let time = Duration::from_secs_f64(self.state.ecs().read_resource::