diff --git a/client/src/lib.rs b/client/src/lib.rs index 291ec29fd8..b2ad5904d5 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -167,7 +167,7 @@ impl Client { _ => {}, } - // Update the server about the player's currently playing animation + // Update the server about the player's currently playing animation and the previous one if let Some(animationHistory) = self.state.read_storage::().get(self.player).cloned() { if let Some(last) = animationHistory.last { if animationHistory.current != last { diff --git a/server/src/lib.rs b/server/src/lib.rs index ba7dd7ec8e..fd1e8fad5e 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -375,6 +375,7 @@ impl Server { &self.state.ecs().internal().read_storage::(), ).join() { if let Some(last) = animationHistory.last { + // Check if we need to sync if animationHistory.current == last { continue; }