DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

3f27ac6d47f95865657dab0f1cf31ab352ff9c30 — Jonni Liljamo 1 year, 7 months ago 66fe22c
fix(client): pre-emptive fix for hand pos event
1 files changed, 8 insertions(+), 2 deletions(-)

M client/src/plugins/game/hand/mod.rs
M client/src/plugins/game/hand/mod.rs => client/src/plugins/game/hand/mod.rs +8 -2
@@ 27,8 27,14 @@ impl Plugin for HandPlugin {
    fn build(&self, app: &mut App) {
        app.add_event::<SpawnHandEvent>()
            .add_event::<PositionHandEvent>()
            .add_system(spawn_hand.run_if(on_event::<SpawnHandEvent>()))
            .add_system(position_hand.run_if(on_event::<PositionHandEvent>()))
            .add_systems(
                (
                    spawn_hand.run_if(on_event::<SpawnHandEvent>()),
                    apply_system_buffers,
                    position_hand.run_if(on_event::<PositionHandEvent>()),
                )
                    .chain(),
            )
            .add_system(handle_clicked_hand_card);
    }
}