Update to 0.1.5
This commit is contained in:
@@ -10,6 +10,7 @@ udpAddress = 52555
|
|||||||
isInitialized = false
|
isInitialized = false
|
||||||
sendIndex = 0
|
sendIndex = 0
|
||||||
serverIndex = 0
|
serverIndex = 0
|
||||||
|
LabsScanned = false
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
enableMod = false,
|
enableMod = false,
|
||||||
@@ -141,11 +142,11 @@ function SendAll(event)
|
|||||||
if game.is_multiplayer() then
|
if game.is_multiplayer() then
|
||||||
serverIndex = 0
|
serverIndex = 0
|
||||||
log("Loaded game as mulitplayer")
|
log("Loaded game as mulitplayer")
|
||||||
end
|
|
||||||
else
|
else
|
||||||
log("Loaded game as singleplayer")
|
log("Loaded game as singleplayer")
|
||||||
serverIndex = 1
|
serverIndex = 1
|
||||||
end
|
end
|
||||||
|
end
|
||||||
isInitialized = true
|
isInitialized = true
|
||||||
|
|
||||||
log("ServerIndex is "..serverIndex.." now")
|
log("ServerIndex is "..serverIndex.." now")
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "factorio-metrics-exporter",
|
"name": "factorio-metrics-exporter",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"title": "Prometheus Metrics Exporter",
|
"title": "Prometheus Metrics Exporter",
|
||||||
"author": "Jan Grießhaber",
|
"author": "Jan Grießhaber",
|
||||||
"contact": "jan@griesshaber.systems",
|
"contact": "jan@griesshaber.systems",
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ LabsScanned = false
|
|||||||
|
|
||||||
|
|
||||||
function GenerateLabInfo()
|
function GenerateLabInfo()
|
||||||
|
storage.labs = {}
|
||||||
for _, surface in pairs(game.surfaces) do
|
for _, surface in pairs(game.surfaces) do
|
||||||
local labs = surface.find_entities_filtered({type="lab"})
|
local labs = surface.find_entities_filtered({type="lab"})
|
||||||
for index, lab in pairs(labs) do
|
for index, lab in pairs(labs) do
|
||||||
|
|||||||
Reference in New Issue
Block a user