diff --git a/client/src/lib.rs b/client/src/lib.rs index 7fb35a02c9..95c00e8bb7 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -149,10 +149,11 @@ impl Client { }); // Step 1 - if let (Some(_), Some(vel), Some(_)) = ( + if let (Some(_), Some(vel), Some(_), Some(_)) = ( self.state.read_component_cloned::(self.player), self.state.read_component_cloned::(self.player), self.state.read_component_cloned::(self.player), + self.state.read_component_cloned::(self.player), ) { self.state.write_component(self.player, comp::Control { move_dir: input.move_dir, diff --git a/server/src/lib.rs b/server/src/lib.rs index 8b05ec10e3..c246652d99 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -245,8 +245,8 @@ impl Server { state.write_component(entity, comp::phys::Dir(Vec3::unit_y())); if let Some(character) = character { state.write_component(entity, character); - } + state.write_component(entity, comp::phys::ForceUpdate); client.state = ClientState::Connected; @@ -365,8 +365,6 @@ impl Server { }; match force_update { - - Some(_) => self.clients.notify_connected(msg), None => self.clients.notify_connected_except(entity, msg), }