mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Fix for migation to new researchSync version
This commit is contained in:
1 parent
93c210f0c7
commit
fec3cf5ddf
1 file changed
+2
-1
@@ -156,7 +156,8 @@ class ResearchSync {
|
||||
|
||||
for (let slave_data of slaves_data)
|
||||
for (let [name, research] of Object.entries(slave_data.meta.research))
|
||||
if (!isNaN(cluster_researches[name].progress) && !isNaN(research.contribution))
|
||||
if (cluster_researches[name]
|
||||
&& !isNaN(cluster_researches[name].progress) && !isNaN(research.contribution))
|
||||
cluster_researches[name].progress += research.contribution
|
||||
|
||||
for (let [name, research] of Object.entries(cluster_researches)) {
|
||||
|
||||
Reference in new issue
Block a user