mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 07:24:53 +09:00
Added unixtime signal to inventory combinator
This commit is contained in:
1 parent
7c1caebccc
commit
a70342fd82
3 files changed
+12
-2
No files matched your search
@@ -287,7 +287,8 @@ setInterval(function () {
|
||||
for (i = 0; i < inventory.length; i++) {
|
||||
inventoryFrame[inventory[i].name] = Number(inventory[i].count);
|
||||
}
|
||||
// console.log("RCONing inventory! " + JSON.stringify(inventoryFrame));
|
||||
inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000);
|
||||
console.log("RCONing inventory! " + JSON.stringify(inventoryFrame));
|
||||
client.exec("/silent-command remote.call('clusterio', 'receiveInventory', '" + JSON.stringify(inventoryFrame) + "')");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user