#61 without ES6 features to support node 6.10

This commit is contained in:
Danielv123 committed 2017-12-03 18:51:31 +01:00
1 parent 132c7999f3
commit 9496fa70e0
1 file changed
+2 -2
+2 -2
View File
@@ -736,8 +736,8 @@ function instanceManagement() {
var inventoryFrame = {};
for (let i = 0; i < inventory.length; i++) {
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
if(inventoryFrame[inventory[i].name] >= Math.pow(2, 31)){
inventoryFrame[inventory[i].name] = Math.pow(2, 30); // set it waaay lower, 31 -1 would probably suffice
}
}
inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000);