mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 00:23:12 +09:00
Fixed desync when viewing scenario code in hotpatch
This commit is contained in:
1 parent
18c486855d
commit
ce13ad50e0
1 file changed
+2
-1
@@ -51,7 +51,8 @@ module.exports = class remoteCommands {
|
|||||||
for(let k in files){
|
for(let k in files){
|
||||||
let name = k.replace(/\\/g, '/');
|
let name = k.replace(/\\/g, '/');
|
||||||
name = name.replace(/ /g, '');
|
name = name.replace(/ /g, '');
|
||||||
fileImportString += `["${name}"] = '${files[k]}', `;
|
// make sure *not* to include control.lua as it is provided as a seperate argument
|
||||||
|
if(name != "control") fileImportString += `["${name}"] = '${files[k]}', `;
|
||||||
}
|
}
|
||||||
fileImportString += `\}`;
|
fileImportString += `\}`;
|
||||||
if(files.control) var returnValue = await messageInterface(`/silent-command remote.call('hotpatch', 'update', '${scenarios[i]}', '1.0.0', '${files.control}', ${fileImportString})`);
|
if(files.control) var returnValue = await messageInterface(`/silent-command remote.call('hotpatch', 'update', '${scenarios[i]}', '1.0.0', '${files.control}', ${fileImportString})`);
|
||||||
|
|||||||
Reference in new issue
Block a user