Rewritten sending helper and logic
This commit is contained in:
@@ -20,7 +20,7 @@ function SendPollutionStats()
|
||||
pollutionParts[#pollutionParts + 1] = ("%s:out:%s:%d"):format(surface_name, name, stat)
|
||||
end
|
||||
end
|
||||
helpers.send_udp(udpAddress, table.concat(pollutionParts, "\n"), serverIndex)
|
||||
SendChunked(table.concat(pollutionParts, "\n"))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -46,7 +46,7 @@ function SendKillStats()
|
||||
killParts[#killParts + 1] = ("%s:out:%s:%d"):format(surface_name, name, stat)
|
||||
end
|
||||
end
|
||||
helpers.send_udp(udpAddress, table.concat(killParts, "\n"), serverIndex)
|
||||
SendChunked(table.concat(killParts, "\n"))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user