mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Merge pull request #169 from MrRozdor/spread_researching
Fix for migation to new researchSync version
This commit is contained in:
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