mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 23:54:53 +09:00
s
This commit is contained in:
1 parent
a6fa3a50dc
commit
17bb1ffee9
1 file changed
+8
-3
@@ -198,9 +198,14 @@ function Elements.stats_table.refresh_online()
|
||||
for _, controls in Elements.controls:online_elements() do
|
||||
local elements = Elements.controls.data[controls]
|
||||
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)
|
||||
local surface = 1
|
||||
if element then
|
||||
local surface_name = element.items[element.selected_index]
|
||||
if surface_name then
|
||||
surface = game.surfaces[surface_name].index
|
||||
end
|
||||
end
|
||||
local display_data = Elements.stats_table.calculate_display_data(surface)
|
||||
for _, stats_table in Elements.stats_table:online_elements() do
|
||||
Elements.stats_table.refresh(stats_table, display_data)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user