Dump only enabled research (#164)

This commit is contained in:
Arvids Godjuks authored and Daniel committed 2019-07-14 17:48:20 +02:00
1 parent c978e8e748
commit 0b34f07954
1 file changed
+1 -1
+1 -1
View File
@@ -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");