Rewritten sending helper and logic
This commit is contained in:
@@ -48,7 +48,7 @@ function SendProductionStats()
|
||||
productionParts[#productionParts+1] = ("%s:out:%s:%d"):format(surfaceName, itemName, itemCount)
|
||||
end
|
||||
end
|
||||
helpers.send_udp(udpAddress, table.concat(productionParts, "\n"), serverIndex)
|
||||
SendChunked(table.concat(productionParts, "\n"))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -77,7 +77,7 @@ function SendFluidProductionStats()
|
||||
productionParts[#productionParts+1] = ("%s:out:%s:%d"):format(surfaceName, itemName, itemCount)
|
||||
end
|
||||
end
|
||||
helpers.send_udp(udpAddress, table.concat(productionParts, "\n"), serverIndex)
|
||||
SendChunked(table.concat(productionParts, "\n"))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -105,7 +105,7 @@ function SendBuildStats()
|
||||
buildParts[#buildParts+1] = ("%s:out:%s:%d"):format(surfaceName, itemName, itemCount)
|
||||
end
|
||||
end
|
||||
helpers.send_udp(udpAddress, table.concat(buildParts, "\n"), serverIndex)
|
||||
SendChunked(table.concat(buildParts, "\n"))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user