mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-25 00:23:12 +09:00
Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
commit
132c7999f3
1 file changed
+3
@@ -736,6 +736,9 @@ function instanceManagement() {
|
|||||||
var inventoryFrame = {};
|
var inventoryFrame = {};
|
||||||
for (let i = 0; i < inventory.length; i++) {
|
for (let i = 0; i < inventory.length; i++) {
|
||||||
inventoryFrame[inventory[i].name] = Number(inventory[i].count);
|
inventoryFrame[inventory[i].name] = Number(inventory[i].count);
|
||||||
|
if(inventoryFrame[inventory[i].name] >= 2 ** 31){
|
||||||
|
inventoryFrame[inventory[i].name] = 2 ** 30; // set it waaay lower, -1 would probably suffice
|
||||||
|
}
|
||||||
}
|
}
|
||||||
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));
|
||||||
|
|||||||
Reference in new issue
Block a user