Skip to content

Commit

Permalink
Fix the uncached destination rich text defaulting to "nil"
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 13, 2023
1 parent 4f06b5f commit c982f6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "se-interstellar-construction-requests-fulfillment",
"title": "Space Exploration - interstellar construction requests fulfillment",
"description": "Keeping building equipment stocked at every planet is tedious, just shoot it there from nauvis.",
"version": "1.0.17",
"version": "1.0.18",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ function Handler.handle_construction_alert(alert_target)
global.rich_text_name_for_destination_surface[alert_target.surface.index] = false
return
end
global.rich_text_name_for_destination_surface[alert_target.surface.index] = Zone._get_rich_text_name(zone)
rich_text_name_for_destination_surface = Zone._get_rich_text_name(zone)
global.rich_text_name_for_destination_surface[alert_target.surface.index] = rich_text_name_for_destination_surface
elseif global.rich_text_name_for_destination_surface[alert_target.surface.index] == false then
return
end
Expand Down

0 comments on commit c982f6e

Please sign in to comment.