mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Dump only enabled research (#164)
This commit is contained in:
1 parent
c978e8e748
commit
0b34f07954
1 file changed
+1
-1
@@ -3,7 +3,7 @@
|
||||
local data = {};
|
||||
|
||||
for _, tech in pairs(game.forces["player"].technologies) do
|
||||
if tech.prototype.max_level == 4294967295 then
|
||||
if tech.enabled == true and tech.prototype.max_level == 4294967295 then
|
||||
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":true");
|
||||
else
|
||||
table.insert(data, tech.name .. ":" .. tostring(tech.researched) .. ":" .. tostring(tech.level) .. ":false");
|
||||
|
||||
Reference in new issue
Block a user