Skip to content

Commit 0212a7d

Browse files
Fixed level data showing on search page sometimes
Idk how to explain why this was happening but just know it's fixed.
1 parent 4a2f7c7 commit 0212a7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,7 @@ async fn main() {
10941094
level_download_button.update(delta_time);
10951095

10961096
if back_button.is_clicked() {
1097+
show_level_not_found = false;
10971098
game_state.0.set(GameState::CreatorMenu);
10981099
}
10991100

@@ -1106,7 +1107,6 @@ async fn main() {
11061107
.read_to_string()
11071108
.unwrap();
11081109

1109-
11101110
if level_download_response.clone().contains(";;;;;") {
11111111
parse_level_download_response(
11121112
level_download_response.clone(),
@@ -1118,6 +1118,7 @@ async fn main() {
11181118
&mut online_level_data
11191119
);
11201120

1121+
show_level_not_found = false;
11211122
game_state.0.set(GameState::LevelPage);
11221123
} else {
11231124
show_level_not_found = true;

0 commit comments

Comments
 (0)