Skip to content

Commit

Permalink
Use planet's localised name
Browse files Browse the repository at this point in the history
  • Loading branch information
tburrows13 committed Oct 19, 2024
1 parent 509bbd7 commit 548bb1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ function Gui.build_surface_name(include_surface_name, surface_name)
display_name = surface_name:gsub("^%l", string.upper)
elseif surface.platform then
display_name = surface.platform.name
-- TODO check if surface has planet associated
elseif surface.planet then
display_name = surface.planet.prototype.localised_name
elseif surface.localised_name then
display_name = surface.localised_name
else
Expand Down

0 comments on commit 548bb1b

Please sign in to comment.