diff --git a/client/src/lib.rs b/client/src/lib.rs index c0c90dd2de..bbaa7b75e5 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::{GameMode, PlayerEntity, TimeOfDay}, + resources::{GameMode, PlayerEntity, ServerTime, Time, TimeOfDay}, spiral::Spiral2d, terrain::{ block::Block, map::MapConfig, neighbors, site::DungeonKindMeta, BiomeKind, @@ -1683,7 +1683,6 @@ impl Client { &mut self, inputs: ControllerInputs, dt: Duration, - total_tick_time: Duration, add_foreign_systems: impl Fn(&mut DispatcherBuilder), ) -> Result, Error> { span!(_guard, "tick", "Client::tick"); @@ -1712,7 +1711,8 @@ impl Client { prof_span!("handle and send inputs"); self.next_control.inputs = inputs; let con = std::mem::take(&mut self.next_control); - let rcon = self.local_command_gen.gen(total_tick_time, con); + let time = Duration::from_secs_f64(self.state.ecs().read_resource::