Private
Public Access
1
0

Update to 0.1.5

This commit is contained in:
Jan Grießhaber
2026-01-02 14:51:21 +01:00
parent 3840e5c41d
commit 265f74814d
3 changed files with 6 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ udpAddress = 52555
isInitialized = false
sendIndex = 0
serverIndex = 0
LabsScanned = false
options = {
enableMod = false,
@@ -141,11 +142,11 @@ function SendAll(event)
if game.is_multiplayer() then
serverIndex = 0
log("Loaded game as mulitplayer")
end
else
log("Loaded game as singleplayer")
serverIndex = 1
end
end
isInitialized = true
log("ServerIndex is "..serverIndex.." now")

View File

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

View File

@@ -6,6 +6,7 @@ LabsScanned = false
function GenerateLabInfo()
storage.labs = {}
for _, surface in pairs(game.surfaces) do
local labs = surface.find_entities_filtered({type="lab"})
for index, lab in pairs(labs) do