From 9c148a5a7c26a647a42149394cf18ea8fe52ab3e Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 13 May 2024 23:50:53 +0200 Subject: [PATCH] fix menu labels not updating --- src/game.rs | 2 +- src/menu.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game.rs b/src/game.rs index de4f2a2..f53514b 100644 --- a/src/game.rs +++ b/src/game.rs @@ -23,7 +23,7 @@ impl Plugin for GamePlugin { fn build(&self, app: &mut App) { app.add_systems(Update, handle_cheats.run_if(in_control)); app.add_systems(Update, debug); - app.add_systems(Update, handle_game_event); + app.add_systems(PostUpdate, handle_game_event); app.add_systems(PreUpdate, handle_player_death); app.add_systems(PostUpdate, update_id2pos); app.insert_resource(Id2Pos(HashMap::new())); diff --git a/src/menu.rs b/src/menu.rs index 12b0e3b..2c2000b 100644 --- a/src/menu.rs +++ b/src/menu.rs @@ -22,7 +22,7 @@ impl Plugin for MenuPlugin { app.add_systems(Startup, setup.after(hud::setup)); app.add_systems(PreUpdate, show_deathscreen.run_if(on_event::())); app.add_systems(Update, handle_deathscreen_input); - app.add_systems(PreUpdate, update_menu + app.add_systems(PostUpdate, update_menu .after(game::handle_game_event) .run_if(on_event::())); app.add_systems(Update, handle_input.run_if(alive));