Private
Public Access
1
0

Fixed options

This commit is contained in:
Jan Grießhaber
2026-01-02 00:50:58 +01:00
parent 9256d2d317
commit d803bce9d3
7 changed files with 201 additions and 31 deletions

View File

@@ -1,4 +1,5 @@
function SendProductionStats()
if options.enableProduction then
local productionParts = {}
productionParts[#productionParts+1] = "---production-stats---"
for _,surface in pairs(game.surfaces) do
@@ -22,10 +23,12 @@ function SendProductionStats()
end
helpers.send_udp(udpAddress, table.concat(productionParts, "\n"), serverIndex)
end
end
function SendFluidProductionStats()
if options.enableFluid then
local productionParts = {}
productionParts[#productionParts+1] = "---fluid-production-stats---"
for _,surface in pairs(game.surfaces) do
@@ -49,9 +52,11 @@ function SendFluidProductionStats()
end
helpers.send_udp(udpAddress, table.concat(productionParts, "\n"), serverIndex)
end
end
function SendBuildStats()
if options.enableProduction then
local buildParts = {}
buildParts[#buildParts+1] = "---build-stats---"
for _,surface in pairs(game.surfaces) do
@@ -74,4 +79,5 @@ function SendBuildStats()
end
end
helpers.send_udp(udpAddress, table.concat(buildParts, "\n"), serverIndex)
end
end