mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-21 08:03:13 +09:00
Port fix researchSync updating researched technologies
Add check in filter_updated_techs that ignores already researched
technologies.
This is a port of b0eb188.
This commit is contained in:
1 parent
b2239aeb96
commit
f1ac41bc4c
2 files changed
+6
No files matched your search
@@ -101,6 +101,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
|
||||||
|
|||||||
@@ -259,6 +259,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