Private
Public Access
1
0

Fix Send Stat lua error

This commit is contained in:
Jan Grießhaber
2026-01-06 16:26:37 +01:00
parent cb2e6fec50
commit 3b4e44aab9
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ function SendPlayerEntityStats()
entityParts[#entityParts + 1] = ("%s:%s:constructed:%s:%s"):format(playerIndex, playerName, itemName, itemCount)
end
end
helpers.send_udp(udpAddress,table.concat(entityParts,"\n",serverIndex))
helpers.send_udp(udpAddress,table.concat(entityParts,"\n"),serverIndex)
entityParts = {}
entityParts[#entityParts + 1] = "---player-build-stats---"
for playerIndex, items in pairs(storage.deconstructedEntities) do
@@ -50,7 +50,7 @@ function SendPlayerEntityStats()
entityParts[#entityParts + 1] = ("%s:%s:deconstructed:%s:%s"):format(playerIndex, playerName, itemName, itemCount)
end
end
helpers.send_udp(udpAddress,table.concat(entityParts,"\n",serverIndex))
helpers.send_udp(udpAddress,table.concat(entityParts,"\n"),serverIndex)
end
function GetMapSeed()

View File

@@ -1,6 +1,6 @@
{
"name": "factorio-metrics-exporter",
"version": "0.3.3",
"version": "0.3.4",
"title": "Prometheus Metrics Exporter",
"author": "Jan Grießhaber",
"contact": "jan@griesshaber.systems",