1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-05 13:15:03 +02:00

Fix stat collection

This commit is contained in:
Gerkiz 2024-10-28 22:47:05 +01:00
parent 660391ecd3
commit 26f45826aa

View File

@ -1148,7 +1148,8 @@ function Public.export_stats()
}
for _, statName in pairs(statistics) do
local surface_stats = flow_statistics[statName] or {}
if not flow_statistics[statName] then flow_statistics[statName] = {} end
local surface_stats = flow_statistics[statName]
surface_stats[surface.name] = {
input = force[statName](surface).input_counts,
output = force[statName](surface).output_counts