Skip to content

Commit

Permalink
Fix star map showing core mining stats for orbits
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Dec 20, 2023
1 parent 3e8cc8c commit 764f632
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions mods/se-core-miner-output-helper/control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ end)
script.on_event(defines.events.on_gui_click, function(event)
if not event.element.valid then return end

if event.element.tags and event.element.tags.action and event.element.tags.action == "go-to-zone" then
-- todo: also check if the "se-map-view-zone-details" is open at all since "go-to-zone" sounds generic?
local player = game.get_player(event.player_index)
local container = event.element.parent.parent.parent['right-flow']['container-frame']
local content = container[Zonelist.name_zone_data_content_scroll_pane]
local zone_index = event.element.tags.zone_index
update_content_for_player(content, player, zone_type)
return
end

local player = game.get_player(event.player_index)

local root = Zonelist.get(player)
Expand Down
2 changes: 1 addition & 1 deletion mods/se-core-miner-output-helper/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "se-core-miner-output-helper",
"title": "Space Exploration - core miner output helper",
"description": "Hover over any core miner (or look in the universe explorer) to get the fragments per second for that surface.",
"version": "1.0.7",
"version": "1.0.8",
"author": "Quezler",
"factorio_version": "1.1",
"dependencies": [
Expand Down

0 comments on commit 764f632

Please sign in to comment.