From 3f27ac6d47f95865657dab0f1cf31ab352ff9c30 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 17 May 2023 09:38:07 +0300 Subject: [PATCH] fix(client): pre-emptive fix for hand pos event --- client/src/plugins/game/hand/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/plugins/game/hand/mod.rs b/client/src/plugins/game/hand/mod.rs index 41be511..286df4f 100644 --- a/client/src/plugins/game/hand/mod.rs +++ b/client/src/plugins/game/hand/mod.rs @@ -27,8 +27,14 @@ impl Plugin for HandPlugin { fn build(&self, app: &mut App) { app.add_event::() .add_event::() - .add_system(spawn_hand.run_if(on_event::())) - .add_system(position_hand.run_if(on_event::())) + .add_systems( + ( + spawn_hand.run_if(on_event::()), + apply_system_buffers, + position_hand.run_if(on_event::()), + ) + .chain(), + ) .add_system(handle_clicked_hand_card); } } -- 2.44.1