researchSync: Fixed importing research

This commit is contained in:
Danielv123 committed 2018-04-13 20:18:47 +02:00
1 parent c9bd26a01e
commit 1d0d9765bd
4 files changed
+43 -37

No files matched your search

+1 -4
View File
@@ -3,10 +3,7 @@
local lines = "";
for _, tech in pairs(game.forces["player"].technologies) do
local dict = {};
dict[tech.name] = tech.researched;
lines = lines .. serpent.line(dict) .. "\n";
lines = lines .. tech.name .. ":" .. tostring(tech.researched) .. "\n";
end
game.write_file("researchSync.txt",lines)