mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Fix issue with research_sync plugin (#502)
* fix type issues on loading technologies and broadcasting progress * Distinguish Technology and TechnologySync type
This commit is contained in:
1 parent
36ced0d3ba
commit
1afbbe04e1
3 files changed
+26
-19
No files matched your search
@@ -3,7 +3,7 @@ import {
|
||||
ContributionEvent,
|
||||
ProgressEvent,
|
||||
FinishedEvent,
|
||||
Technology,
|
||||
TechnologySync,
|
||||
SyncTechnologiesRequest,
|
||||
} from "./messages";
|
||||
|
||||
@@ -73,7 +73,7 @@ export class InstancePlugin extends lib.BaseInstancePlugin {
|
||||
let techsToSend = [];
|
||||
let instanceTechs = new Map();
|
||||
for (let tech of JSON.parse(dumpJson)) {
|
||||
techsToSend.push(new Technology(
|
||||
techsToSend.push(new TechnologySync(
|
||||
tech.name,
|
||||
tech.level,
|
||||
tech.progress || null,
|
||||
|
||||
Reference in new issue
Block a user