1
0
mirror of https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git synced 2024-12-04 09:43:00 +02:00

Fix missing surface name on player list if not on planet.

This commit is contained in:
Oarcinae 2024-12-03 13:23:35 -05:00
parent 502ed16b92
commit 37dda47921

View File

@ -126,7 +126,7 @@ function CreatePlayerGPSButton(container, player_name)
if game.planets[surface_name] ~= nil then
AddLabel(flow, nil, {"", "[planet=", surface_name, "] ", {"space-location-name."..surface_name}}, my_label_style)
else
AddLabel(flow, nil, game.surfaces[surface_name].localised_name, my_label_style)
AddLabel(flow, nil, game.surfaces[surface_name].localised_name or game.surfaces[surface_name].name, my_label_style)
end
end