Update to 0.1.5
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user