steamutils 1.4.13 → 1.4.14
Sign up to get free protection for your applications and to get access to all the features.
- package/SteamClient.js +1 -1
- package/index.js +4 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -1951,7 +1951,7 @@ function SteamClient({ username, password, cookie, clientJsToken, isAutoRequestF
|
|
1951
1951
|
if (richPresence.map === undefined) {
|
1952
1952
|
richPresence.map = maps[Math.floor(Math.random() * maps.length)];
|
1953
1953
|
}
|
1954
|
-
if (richPresence.myScore
|
1954
|
+
if (richPresence.myScore >= maxRound || richPresence.theirScore >= maxRound) {
|
1955
1955
|
richPresence.myScore = 0;
|
1956
1956
|
richPresence.theirScore = 0;
|
1957
1957
|
richPresence.map = maps[Math.floor(Math.random() * maps.length)];
|
package/index.js
CHANGED
@@ -77,7 +77,10 @@ export default class SteamUser {
|
|
77
77
|
return;
|
78
78
|
}
|
79
79
|
this.Steam_Language = language;
|
80
|
-
this._cookies.forEach((cookie)
|
80
|
+
this._cookies.forEach(function (cookie) {
|
81
|
+
cookie.setCookie("Steam_Language", language);
|
82
|
+
cookie.setCookie("strInventoryLastContext", "730_2");
|
83
|
+
});
|
81
84
|
}
|
82
85
|
|
83
86
|
static parseCookie(cookies) {
|