mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-14 16:14:53 +09:00
.
This commit is contained in:
1 parent
9aa46eb812
commit
7a6e0a1d0a
1 file changed
+3
-1
@@ -197,7 +197,9 @@ end
|
||||
function Elements.stats_table.refresh_online()
|
||||
for _, controls in Elements.controls:online_elements() do
|
||||
local elements = Elements.controls.data[controls]
|
||||
local surface = game.surfaces[elements.surface_dropdown.items[elements.surface_dropdown.selected_index]]
|
||||
local element = elements.surface_dropdown
|
||||
if not element then return end
|
||||
local surface = game.surfaces[element.items[element.selected_index]]
|
||||
local display_data = Elements.stats_table.calculate_display_data(surface.index)
|
||||
for _, stats_table in Elements.stats_table:online_elements() do
|
||||
Elements.stats_table.refresh(stats_table, display_data)
|
||||
|
||||
Reference in new issue
Block a user