mirror of
https://github.com/Oarcinae/FactorioScenarioMultiplayerSpawn.git
synced 2024-12-14 10:23:17 +02:00
Fixed broken MergeForcesKeepResearch function. Forgot it hadn't been tested yet...
This commit is contained in:
parent
f600dfeeea
commit
0b83e24c35
@ -283,7 +283,7 @@ end
|
||||
|
||||
-- Merges force2 INTO force1 but keeps all research between both forces.
|
||||
function MergeForcesKeepResearch(force1, force2)
|
||||
for techName,luaTech in pairs(force2.technologies)
|
||||
for techName,luaTech in pairs(force2.technologies) do
|
||||
if (luaTech.researched) then
|
||||
force1.technologies[techName].researched = true
|
||||
force1.technologies[techName].level = luaTech.level
|
||||
|
Loading…
Reference in New Issue
Block a user