diff --git a/CHANGELOG.md b/CHANGELOG.md index c35883c0..de87842b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ Version 1.2.2 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. +- Fixed progress of a previous infinite tech from another node being applied + to the current one in researchSync. Version 1.2.1 diff --git a/sharedPlugins/researchSync/index.js b/sharedPlugins/researchSync/index.js index 37fb7a0d..1407b5d6 100644 --- a/sharedPlugins/researchSync/index.js +++ b/sharedPlugins/researchSync/index.js @@ -253,6 +253,12 @@ class ResearchSync { } if (isNaN(cluster_techs[name].progress)) continue + + // Do not update progress for infinite techs with a local level that's higher. + if (tech.infinite && tech.level > cluster_techs[name].level) { + continue; + } + if (tech.progress < cluster_techs[name].progress) result[name] = cluster_techs[name] }