Port set progress when completing infinite researches

Set the progress for the next level of an infinite research when
unlocking it via a script.  This is necessary when the research is
actively being researched  as Factorio will carry over the progress for
the current level into the next one when set via a script.

It's possible for the new progress to be non-zero if the next level was
on the research queue.

This is a port of 62f3a99.
This commit is contained in:
Hornwitser committed 2019-10-12 22:45:07 +02:00
1 parent 9098b3cf19
commit 7f82680511
3 files changed
+15 -6

No files matched your search

+2
View File
@@ -33,6 +33,8 @@ Version 1.2.2
- Fixed possible crash with modded technologies named the same as a built-in
Object prototype property in researchSync.
- Fixed progress of a current infinite tech carrying over to the next one
when researching it and another node completes it in researchSync.
Version 1.2.1