Fixed options
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user