fix(graftorio): config issues

This commit is contained in:
oof2win2 committed 2022-05-14 22:29:11 +02:00
1 parent 8195107572
commit 2c21f989ae
3 files changed
+13 -8

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
local Event = require("utils.event")
local general = require("modules.graftorio.general")
local config = require("config.graftorio")
local lib = {}
@@ -114,7 +115,7 @@ lib.collect_loginet = function()
stats.to_charge_robot_count = (stats.to_charge_robot_count) + cell.to_charge_robot_count
end
if settings.general.data["graftorio-logistic-items"].value then
if config.modules.logistorage then
for name, v in pairs(network.get_contents()) do
stats.items[name] = (stats.items[name] or 0) + v
end