mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Fix researchSync updating researched technologies
Add check in filter_updated_techs that ignores already researched technologies.
This commit is contained in:
1 parent
e70cfe7abd
commit
b0eb188e22
2 files changed
+6
No files matched your search
@@ -5,6 +5,7 @@ Version 1.2.4
|
|||||||
-------------
|
-------------
|
||||||
|
|
||||||
- Removed broken remote combinator signaling.
|
- Removed broken remote combinator signaling.
|
||||||
|
- Fixed research sync endlessly updating already researched technologies
|
||||||
|
|
||||||
|
|
||||||
Version 1.2.3
|
Version 1.2.3
|
||||||
|
|||||||
@@ -284,6 +284,11 @@ class ResearchSync {
|
|||||||
if (isNaN(cluster_techs[name].progress))
|
if (isNaN(cluster_techs[name].progress))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
// Ignore researched techs
|
||||||
|
if (!tech.infinite && tech.researched) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Do not update progress for infinite techs with a local level that's higher.
|
// Do not update progress for infinite techs with a local level that's higher.
|
||||||
if (tech.infinite && tech.level > cluster_techs[name].level) {
|
if (tech.infinite && tech.level > cluster_techs[name].level) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in new issue
Block a user