mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Fix missing semicolons
Ensure all statements end with a semicolon.
This commit is contained in:
1 parent
34aaeee354
commit
29f066a191
56 files changed
+242
-242
No files matched your search
@@ -77,4 +77,4 @@ module.exports = {
|
||||
},
|
||||
}),
|
||||
},
|
||||
}
|
||||
};
|
||||
@@ -5,8 +5,8 @@ const luaTools = require("lib/luaTools");
|
||||
|
||||
|
||||
function unexpectedError(err) {
|
||||
console.log("Unexpected error in research_sync")
|
||||
console.log("---------------------------------")
|
||||
console.log("Unexpected error in research_sync");
|
||||
console.log("---------------------------------");
|
||||
console.log(err);
|
||||
}
|
||||
|
||||
@@ -78,4 +78,4 @@ class InstancePlugin extends plugin.BaseInstancePlugin {
|
||||
|
||||
module.exports = {
|
||||
InstancePlugin,
|
||||
}
|
||||
};
|
||||
@@ -38,7 +38,7 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
|
||||
}
|
||||
|
||||
broadcastProgress() {
|
||||
let techs = []
|
||||
let techs = [];
|
||||
for (let name of this.progressToBroadcast) {
|
||||
let tech = this.technologies.get(name);
|
||||
if (tech.progress) {
|
||||
@@ -58,7 +58,7 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
|
||||
let tech = this.technologies.get(name);
|
||||
if (!tech) {
|
||||
tech = { level, progress: 0, researched: false };
|
||||
this.technologies.set(name, tech)
|
||||
this.technologies.set(name, tech);
|
||||
|
||||
// Ignore contribution to already researched technologies
|
||||
} else if (tech.level > level || tech.level === level && tech.researched) {
|
||||
@@ -96,7 +96,7 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
|
||||
let tech = this.technologies.get(name);
|
||||
if (!tech || tech.level <= level) {
|
||||
this.progressToBroadcast.delete(name);
|
||||
this.technologies.set(name, { level, progress: null, researched: true })
|
||||
this.technologies.set(name, { level, progress: null, researched: true });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,10 +151,10 @@ class MasterPlugin extends plugin.BaseMasterPlugin {
|
||||
|
||||
let technologies = [];
|
||||
for (let [name, tech] of this.technologies) {
|
||||
technologies.push([ name, tech.level, tech.progress, tech.researched ])
|
||||
technologies.push([ name, tech.level, tech.progress, tech.researched ]);
|
||||
}
|
||||
|
||||
return { technologies }
|
||||
return { technologies };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -184,4 +184,4 @@ async function saveTechnologies(masterConfig, technologies) {
|
||||
|
||||
module.exports = {
|
||||
MasterPlugin
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user