mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 08:23:12 +09:00
split receiveInventory into multiple commands
This commit is contained in:
1 parent
89ad2baa26
commit
0afc3d7e78
1 file changed
+3
-3
@@ -863,8 +863,8 @@ function instanceManagement() {
|
|||||||
}
|
}
|
||||||
inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000);
|
inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000);
|
||||||
// console.log("RCONing inventory! " + JSON.stringify(inventoryFrame));
|
// console.log("RCONing inventory! " + JSON.stringify(inventoryFrame));
|
||||||
messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '" + JSON.stringify(inventoryFrame) + "')");
|
//messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '" + JSON.stringify(inventoryFrame) + "')");
|
||||||
/*let cmd="{";
|
let cmd="{";
|
||||||
for (var key in inventoryFrame)
|
for (var key in inventoryFrame)
|
||||||
{
|
{
|
||||||
cmd+='"'+key+'"'+":"+inventoryFrame[key]+",";
|
cmd+='"'+key+'"'+":"+inventoryFrame[key]+",";
|
||||||
@@ -874,7 +874,7 @@ function instanceManagement() {
|
|||||||
cmd="{";
|
cmd="{";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '"+cmd.slice(0, -1)+"}"+ "')");*/
|
messageInterface("/silent-command remote.call('clusterio', 'receiveInventory', '"+cmd.slice(0, -1)+"}"+ "')");
|
||||||
} catch (e){
|
} catch (e){
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user